From a597e6eeb35ca98a39756f608c56d98e852b22e1 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 31 Mar 2020 11:21:10 +0200 Subject: [PATCH] Fix bad date --- src/utils/DateUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/DateUtils.ts b/src/utils/DateUtils.ts index ad138da..6e88cdb 100644 --- a/src/utils/DateUtils.ts +++ b/src/utils/DateUtils.ts @@ -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(); } \ No newline at end of file