mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
Merge pull request #540 from sailxjx/fix/dateformat
Change date format from y/m/d to Y/M/D
This commit is contained in:
commit
47ccb67256
@ -186,15 +186,15 @@ function timeSince(date) {
|
||||
var interval = Math.floor(seconds / 31536000);
|
||||
|
||||
if (interval > 1) {
|
||||
return interval + 'y';
|
||||
return interval + 'Y';
|
||||
}
|
||||
interval = Math.floor(seconds / 2592000);
|
||||
if (interval > 1) {
|
||||
return interval + 'm';
|
||||
return interval + 'M';
|
||||
}
|
||||
interval = Math.floor(seconds / 86400);
|
||||
if (interval > 1) {
|
||||
return interval + 'd';
|
||||
return interval + 'D';
|
||||
}
|
||||
interval = Math.floor(seconds / 3600);
|
||||
if (interval > 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user