Merge pull request #540 from sailxjx/fix/dateformat

Change date format from y/m/d to Y/M/D
This commit is contained in:
soyuka 2014-06-30 11:08:35 +02:00
commit 47ccb67256

View File

@ -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) {