diff --git a/libEDSsharp/eds.cs b/libEDSsharp/eds.cs index 41aa7cd4..cf482a0d 100644 --- a/libEDSsharp/eds.cs +++ b/libEDSsharp/eds.cs @@ -1226,11 +1226,11 @@ public void savefile(string filename) //generate date times in DS306 format; h:mmtt MM-dd-yyyy - fi.CreationDate = fi.CreationDateTime.ToString("MM-dd-yyyy"); - fi.CreationTime = fi.CreationDateTime.ToString("h:mmtt"); + fi.CreationDate = fi.CreationDateTime.ToString("MM-dd-yyyy", CultureInfo.InvariantCulture); + fi.CreationTime = fi.CreationDateTime.ToString("h:mmtt", CultureInfo.InvariantCulture); - fi.ModificationDate = fi.ModificationDateTime.ToString("MM-dd-yyyy"); - fi.ModificationTime = fi.ModificationDateTime.ToString("h:mmtt"); + fi.ModificationDate = fi.ModificationDateTime.ToString("MM-dd-yyyy", CultureInfo.InvariantCulture); + fi.ModificationTime = fi.ModificationDateTime.ToString("h:mmtt", CultureInfo.InvariantCulture); fi.FileName = filename;