Skip to content

Commit

Permalink
Revert "Use round-trip format specifier for DateTime"
Browse files Browse the repository at this point in the history
  • Loading branch information
tmenier authored Nov 28, 2017
1 parent 7a3da84 commit fa46f63
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Flurl/Util/CommonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public static IEnumerable<KeyValuePair<string, object>> ToKeyValuePairs(this obj
/// </summary>
public static string ToInvariantString(this object obj) {
// inspired by: http://stackoverflow.com/a/19570016/62600

var d = obj as DateTime?;
if (d != null)
return d.Value.ToString("O", CultureInfo.InvariantCulture);

#if !NETSTANDARD1_0
var c = obj as IConvertible;
Expand Down Expand Up @@ -128,4 +124,4 @@ public static void Merge<TKey, TValue>(this IDictionary<TKey, TValue> d1, IDicti
d1.Add(kv);
}
}
}
}

0 comments on commit fa46f63

Please sign in to comment.