Skip to content

Commit 1253329

Browse files
committed
Switch to the objectively correct Japanese date format
1 parent 43de5c7 commit 1253329

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ContentEditor.App/Imgui/App/Home.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ private void ShowUpdateLog()
584584
ImGui.Text("Version " + release.TagName);
585585
ImGui.PopFont();
586586

587-
ImGui.TextColored(Colors.Faded, $"Release date: {release.ReleaseDate.ToLocalTime().ToString()}");
587+
ImGui.TextColored(Colors.Faded, $"Release date: {release.ReleaseDate.ToLocalTime().ToString("yyyy/MM/dd hh:mm tt")}");
588588

589589
if (release.TagName == AppConfig.Version) {
590590
ImGui.SameLine();
@@ -653,7 +653,7 @@ private void ShowCommitLog()
653653
var commits = AppConfig.Settings.Changelogs.FindCurrentAndNewCommits();
654654
ImGui.BeginChild("CommitLog");
655655
foreach (var commit in commits) {
656-
ImGui.TextColored(Colors.Faded, commit.Commit.Author?.Date.ToLocalTime().ToString("MM/dd/yyyy hh:mm tt") ?? "[unknown time]");
656+
ImGui.TextColored(Colors.Faded, commit.Commit.Author?.Date.ToLocalTime().ToString("yyyy/MM/dd hh:mm tt") ?? "[unknown time]");
657657
ImGui.SameLine();
658658
ImGui.Text(commit.Commit.Message ?? "<no message>");
659659
if (AppConfig.RevisionHash != null && commit.Sha?.StartsWith(AppConfig.RevisionHash) == true) {

ContentEditor.Core/Data/Bundle.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace ContentEditor.Core;
1+
namespace ContentEditor.Core;
22

33
using System;
44
using System.Diagnostics.CodeAnalysis;
@@ -69,7 +69,7 @@ public class Bundle
6969

7070
public void Touch()
7171
{
72-
UpdatedAt = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss \\U\\T\\C");
72+
UpdatedAt = DateTime.UtcNow.ToString("yyyy/MM/dd hh:mm:ss tt");
7373
UpdatedAtTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
7474
if (CreatedAt == null) CreatedAt = UpdatedAt;
7575
_nativeToLocalResourcePathCache = null;
@@ -201,4 +201,4 @@ public class ResourceListItem
201201
public DateTime DiffTime { get; set; }
202202

203203
public override string ToString() => Target;
204-
}
204+
}

0 commit comments

Comments
 (0)