OSDN Git Service

[fix] : 月を修正
authorhayao <shun819.mail@gmail.com>
Sat, 10 Oct 2020 04:05:14 +0000 (13:05 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 10 Oct 2020 04:05:14 +0000 (13:05 +0900)
alteriso-options-generator/main.js

index 4b9a7b2..4149660 100644 (file)
@@ -42,7 +42,7 @@ function writeLog(_msg) {
 
     // 参考 https://www.sejuku.net/blog/30171
     var _time = new Date();
-    var _log_date = _time.getFullYear() + "/" + _time.getMonth() + "/" + _time.getDate() + " " + _time.getHours() + ":" + _time.getMinutes() + ":" + _time.getSeconds();
+    var _log_date = _time.getFullYear() + "/" + Number(_time.getMonth() + 1) + "/" + _time.getDate() + " " + _time.getHours() + ":" + _time.getMinutes() + ":" + _time.getSeconds();
     // console.log (_log_date);
     _log_box.value = "\n" + "[" + _log_date + "]" + _msg +_log_box.value;