Automap (client) [VS plugin mod]
Revision | 34559f752d5b86674b0403f57a30111047fdc2bd (tree) |
---|---|
Time | 2020-07-06 07:35:47 |
Author | melchior <melchior@user...> |
Commiter | melchior |
Changed Snapshot filename Time format
@@ -14,6 +14,7 @@ namespace Automap | ||
14 | 14 | public class Snapshotter |
15 | 15 | { |
16 | 16 | public readonly int chunkSize; |
17 | + private const string customTimeFormat = @"yyyy.MM.dd.HH.mm.ssZzz"; | |
17 | 18 | public string fileName; |
18 | 19 | public string chunkPath; |
19 | 20 | public ColumnsMetadata cols; |
@@ -26,7 +27,7 @@ namespace Automap | ||
26 | 27 | |
27 | 28 | public Snapshotter(string path, ColumnsMetadata cols, int chunkSize, int worldSeed) |
28 | 29 | { |
29 | - this.fileName = Path.Combine(path, $"snapshot_{worldSeed}_{DateTime.UtcNow:s}.png"); | |
30 | + this.fileName = Path.Combine(path, $"snapshot_{worldSeed}_{DateTime.Now.ToString(customTimeFormat)}.png"); | |
30 | 31 | this.chunkPath = Path.Combine(path, AutomapSystem._chunkPath); |
31 | 32 | this.cols = cols; |
32 | 33 | this.chunkSize = chunkSize; |