1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Fix bad date

This commit is contained in:
Pierre HUBERT 2020-03-31 11:21:10 +02:00
parent 288d5bdc09
commit a597e6eeb3

View File

@ -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();
}