From eca4820f1da215f253c4b4c331fe313237cf4b8a Mon Sep 17 00:00:00 2001 From: grandsilence Date: Fri, 20 Jul 2018 00:08:19 +0300 Subject: [PATCH] Fix ToFileFormatString (colon : is invalid character ofc) --- Leaf.Core/Extensions/System/DateTimeExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Leaf.Core/Extensions/System/DateTimeExtensions.cs b/Leaf.Core/Extensions/System/DateTimeExtensions.cs index 6d8572f..3670dc6 100644 --- a/Leaf.Core/Extensions/System/DateTimeExtensions.cs +++ b/Leaf.Core/Extensions/System/DateTimeExtensions.cs @@ -23,7 +23,7 @@ public static DateTime FirstJanuary1970 /// public static string ToFileFormatString(this DateTime self) { - return self.ToString("yyyy-MM-dd__HH:mm:ss", CultureInfo.InvariantCulture); + return self.ToString("yyyy-MM-dd__HH-mm-ss", CultureInfo.InvariantCulture); } } } \ No newline at end of file