1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Timezone improvements

This commit is contained in:
DanieL 2022-04-20 15:09:56 -03:00
parent a7d14471e7
commit 0645afc55d

View file

@ -1796,7 +1796,9 @@ function convertDBDateToLocal(dbDateString) {
console.log('convertDBDateToLocal _serverDBTimezone is empty', dbDateString);
return dbDateString;
} else {
var date = new Date(dbDateString + ' ' + _serverDBTimezone);
var dateStr = dbDateString + ' ' + _serverDBTimezone;
console.log('convertDBDateToLocal', dateStr);
var date = new Date(dateStr);
return date.toJSON().slice(0, 19).replace('T', ' ');
}
}