mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Fix bad date
This commit is contained in:
parent
288d5bdc09
commit
a597e6eeb3
@ -16,6 +16,6 @@ export function time() : number {
|
||||
export function mysql_date() : string {
|
||||
const date = new Date();
|
||||
|
||||
return date.getFullYear() + "-" + (date.getMonth()+1) + "-" + (date.getDate() + 1)
|
||||
return date.getFullYear() + "-" + (date.getMonth()+1) + "-" + (date.getDate())
|
||||
+ " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
|
||||
}
|
Loading…
Reference in New Issue
Block a user