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