Skip to content

Commit

Permalink
Merge pull request #55 from trojanobelix/master
Browse files Browse the repository at this point in the history
Modify/Creation date and time in DS306 format for eds file (h:mmtt MM…
  • Loading branch information
robincornelius authored Feb 1, 2017
2 parents 1c03f44 + 89a5791 commit 32bf8c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libEDSsharp/eds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 32bf8c9

Please sign in to comment.