Skip to content

Commit 5e1ce7c

Browse files
committed
fix: Make display times consistent
1 parent 5b4f502 commit 5e1ce7c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils/HistoryLogger.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ ORDER BY Timestamp DESC
132132
}
133133
history.Add(new TranslationHistoryEntry
134134
{
135-
Timestamp = localTime.ToString("MM/dd HH:mm"),
136-
TimestampFull = localTime.ToString("MM/dd/yy, HH:mm:ss"),
135+
Timestamp = localTime.ToString("yyyy-MM-dd HH:mm"),
136+
TimestampFull = localTime.ToString("yyyy-MM-dd HH:mm:ss"),
137137
SourceText = reader.GetString(reader.GetOrdinal("SourceText")),
138138
TranslatedText = reader.GetString(reader.GetOrdinal("TranslatedText")),
139139
TargetLanguage = reader.GetString(reader.GetOrdinal("TargetLanguage")),
@@ -189,8 +189,8 @@ ORDER BY Id DESC
189189
DateTime localTime = DateTimeOffset.FromUnixTimeSeconds((long)Convert.ToDouble(unixTime)).LocalDateTime;
190190
return new TranslationHistoryEntry
191191
{
192-
Timestamp = localTime.ToString("MM/dd HH:mm"),
193-
TimestampFull = localTime.ToString("MM/dd/yy, HH:mm:ss"),
192+
Timestamp = localTime.ToString("yyyy-MM-dd HH:mm"),
193+
TimestampFull = localTime.ToString("yyyy-MM-dd HH:mm:ss"),
194194
SourceText = reader.GetString(reader.GetOrdinal("SourceText")),
195195
TranslatedText = reader.GetString(reader.GetOrdinal("TranslatedText")),
196196
TargetLanguage = reader.GetString(reader.GetOrdinal("TargetLanguage")),

0 commit comments

Comments
 (0)