Repository: lucenenet Updated Branches: refs/heads/master 565a8968f -> 44800efcf
BUG: Lucene.Net.Support.DictionaryExtensions: Fixed Store() method to save the date using the InvariantCulture so the format is unaffected by the ambient culture. Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/44800efc Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/44800efc Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/44800efc Branch: refs/heads/master Commit: 44800efcfc9f5f2235dd349c00e2d40eb2615d4c Parents: 565a896 Author: Shad Storhaug <[email protected]> Authored: Wed Sep 13 08:09:56 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Wed Sep 13 08:09:56 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net/Support/DictionaryExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/44800efc/src/Lucene.Net/Support/DictionaryExtensions.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Support/DictionaryExtensions.cs b/src/Lucene.Net/Support/DictionaryExtensions.cs index 0f616cb..d143bf8 100644 --- a/src/Lucene.Net/Support/DictionaryExtensions.cs +++ b/src/Lucene.Net/Support/DictionaryExtensions.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Text; @@ -343,7 +344,7 @@ namespace Lucene.Net.Support WriteComments(writer, comments); } writer.Write('#'); - writer.Write(new DateTime().ToString("yyyy-MM-dd")); + writer.Write(new DateTime().ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); writer.Write(lineSeparator); StringBuilder buffer = new StringBuilder(200);
