mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Timezone improvements
This commit is contained in:
parent
a7d14471e7
commit
0645afc55d
1 changed files with 3 additions and 1 deletions
|
@ -1796,7 +1796,9 @@ function convertDBDateToLocal(dbDateString) {
|
||||||
console.log('convertDBDateToLocal _serverDBTimezone is empty', dbDateString);
|
console.log('convertDBDateToLocal _serverDBTimezone is empty', dbDateString);
|
||||||
return dbDateString;
|
return dbDateString;
|
||||||
} else {
|
} 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', ' ');
|
return date.toJSON().slice(0, 19).replace('T', ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue