mirror of
https://github.com/sigmasternchen/threadule
synced 2025-03-15 08:09:01 +00:00
fix: custom date now works correctly
This commit is contained in:
parent
35a9b38fb0
commit
b61be2af7a
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ class CustomDate extends Date {
|
|||
timezone: boolean = true): string {
|
||||
let result =
|
||||
this.getFullYear() + "-" +
|
||||
(String(this.getMonth()).padStart(2, "0")) + "-" +
|
||||
(String(this.getDay()).padStart(2, "0")) + "T" +
|
||||
(String(this.getMonth() + 1).padStart(2, "0")) + "-" +
|
||||
(String(this.getDate()).padStart(2, "0")) + "T" +
|
||||
(String(this.getHours()).padStart(2, "0")) + ":" +
|
||||
(String(this.getMinutes()).padStart(2, "0")) + ":" +
|
||||
(String(this.getSeconds()).padStart(2, "0"))
|
||||
|
|
Loading…
Reference in a new issue