mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
fix timezone
This commit is contained in:
parent
66adb2909e
commit
f507e7754b
1 changed files with 1 additions and 1 deletions
|
@ -1931,7 +1931,7 @@ function convertDateFromTimezoneToLocal(dbDateString, timezone) {
|
|||
console.log('convertDBDateToLocal format does not match', dbDateString);
|
||||
return dbDateString;
|
||||
}
|
||||
dbDateString = dbDateString.replace(/[^ 0-9:-]/g,'')
|
||||
dbDateString = $.trim(dbDateString.replace(/[^ 0-9:-]/g,''));
|
||||
console.log('moment.tz',dbDateString,timezone);
|
||||
isMomentTimezoneReady(timezone);
|
||||
var m = moment.tz(dbDateString,timezone).local();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue