mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Changed /-s to "-" in date format
This commit is contained in:
parent
0b1bfcbc31
commit
3e2b76f75b
2 changed files with 4 additions and 15 deletions
|
@ -90,9 +90,9 @@ function AddVisitStat(name, subj, newQuestions, allQuestions) {
|
|||
var date = new Date()
|
||||
const now =
|
||||
date.getFullYear() +
|
||||
'/' +
|
||||
'-' +
|
||||
('0' + (date.getMonth() + 1)).slice(-2) +
|
||||
'/' +
|
||||
'-' +
|
||||
('0' + date.getDate()).slice(-2)
|
||||
if (vData[now] === undefined) {
|
||||
vData[now] = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue