Skip to content

Commit

Permalink
Merge pull request #248 from tmenier/revert-241-roundtrip
Browse files Browse the repository at this point in the history
Revert "Use round-trip format specifier for DateTime"
  • Loading branch information
tmenier authored Nov 28, 2017
2 parents 7a3da84 + fa46f63 commit ee38be7
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 ee38be7

Please sign in to comment.