mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
Use local time for display
This commit is contained in:
@@ -31,9 +31,9 @@ function displayTime(elements, time) {
|
||||
var value;
|
||||
|
||||
if(format == 'fromNow') {
|
||||
value = time.fromNow();
|
||||
value = time.local().fromNow();
|
||||
} else {
|
||||
value = time.format(format);
|
||||
value = time.local().format(format);
|
||||
}
|
||||
|
||||
el.innerHTML = value;
|
||||
|
||||
Reference in New Issue
Block a user