[fix] pretty date in website
This commit is contained in:
parent
4edb2cf156
commit
8523ebe6a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
function prettyDate(time, mini){
|
||||
|
||||
if(moment) {
|
||||
if(sys_defaults.time_zone) {
|
||||
if(window.sys_defaults && sys_defaults.time_zone) {
|
||||
var ret = moment.tz(time, sys_defaults.time_zone).fromNow(mini);
|
||||
} else {
|
||||
var ret = moment(time).fromNow(mini);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue