fix web file-list last_modified wrong date bug. (#440)

This commit is contained in:
kira1928 authored and GitHub committed 2023-04-17 00:34:20 +09:00
1 parent 54540bfc76
commit 310a376dac
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ class Utils {
static timestampToHumanReadable(timestamp: number): string {
const date = new Date(timestamp * 1000);
const year = date.getFullYear().toString().padStart(4, "0");
const month = date.getMonth().toString().padStart(2, "0");
const month = (date.getMonth() + 1).toString().padStart(2, "0");
const day = date.getDate().toString().padStart(2, "0");
const hour = date.getHours().toString().padStart(2, "0");
const min = date.getMinutes().toString().padStart(2, "0");