• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Automap (client) [VS plugin mod]


Commit MetaInfo

Revision34559f752d5b86674b0403f57a30111047fdc2bd (tree)
Time2020-07-06 07:35:47
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Changed Snapshot filename Time format

Change Summary

Incremental Difference

--- a/Automap/Subsystems/Snapshot.cs
+++ b/Automap/Subsystems/Snapshot.cs
@@ -14,6 +14,7 @@ namespace Automap
1414 public class Snapshotter
1515 {
1616 public readonly int chunkSize;
17+ private const string customTimeFormat = @"yyyy.MM.dd.HH.mm.ssZzz";
1718 public string fileName;
1819 public string chunkPath;
1920 public ColumnsMetadata cols;
@@ -26,7 +27,7 @@ namespace Automap
2627
2728 public Snapshotter(string path, ColumnsMetadata cols, int chunkSize, int worldSeed)
2829 {
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");
3031 this.chunkPath = Path.Combine(path, AutomapSystem._chunkPath);
3132 this.cols = cols;
3233 this.chunkSize = chunkSize;