From 34559f752d5b86674b0403f57a30111047fdc2bd Mon Sep 17 00:00:00 2001 From: melchior Date: Sun, 5 Jul 2020 18:35:47 -0400 Subject: [PATCH] Changed Snapshot filename Time format --- Automap/Subsystems/Snapshot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Automap/Subsystems/Snapshot.cs b/Automap/Subsystems/Snapshot.cs index db66267..507bbec 100644 --- a/Automap/Subsystems/Snapshot.cs +++ b/Automap/Subsystems/Snapshot.cs @@ -14,6 +14,7 @@ namespace Automap public class Snapshotter { public readonly int chunkSize; + private const string customTimeFormat = @"yyyy.MM.dd.HH.mm.ssZzz"; public string fileName; public string chunkPath; public ColumnsMetadata cols; @@ -26,7 +27,7 @@ namespace Automap public Snapshotter(string path, ColumnsMetadata cols, int chunkSize, int worldSeed) { - this.fileName = Path.Combine(path, $"snapshot_{worldSeed}_{DateTime.UtcNow:s}.png"); + this.fileName = Path.Combine(path, $"snapshot_{worldSeed}_{DateTime.Now.ToString(customTimeFormat)}.png"); this.chunkPath = Path.Combine(path, AutomapSystem._chunkPath); this.cols = cols; this.chunkSize = chunkSize; -- 2.11.0