1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

System timezone added

This commit is contained in:
DanieL 2022-08-18 12:45:00 -03:00
parent a15b32f39c
commit b749e1c027
6 changed files with 21 additions and 3 deletions

View file

@ -12,7 +12,7 @@ function getTemplateFromArray(itemsArray) {
} else if (search == 'element_class' && !empty(itemsArray.id)) {
replace += " UserNotificationsJS_" + itemsArray.id;
} else if (search == 'created') {
m = moment.tz(itemsArray.created, itemsArray.timezone).local();
m = moment.tz(itemsArray.created, _serverSystemTimezone).local();
replace = m.fromNow();
}
template = template.replace(new RegExp('{' + search + '}', 'g'), replace);