mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
System timezone added
This commit is contained in:
parent
a15b32f39c
commit
b749e1c027
6 changed files with 21 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue