diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-06 16:38:54 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-06 16:38:54 -0400 |
commit | 90e4af312a68049d08d7701e069143387613545a (patch) | |
tree | 2bab049db776b39db1c2c83a57c7d5598b032f92 /core | |
parent | 466d7c0d99eab914960295f27496a9380cd8d125 (diff) | |
download | nextcloud-server-90e4af312a68049d08d7701e069143387613545a.tar.gz nextcloud-server-90e4af312a68049d08d7701e069143387613545a.zip |
Fix time formatting for minutes, prepend 0 if minutes is less than 10
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index d6483b2c225..df834157cdb 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -518,5 +518,5 @@ function formatDate(date){ } var monthNames = [ t('files','January'), t('files','February'), t('files','March'), t('files','April'), t('files','May'), t('files','June'), t('files','July'), t('files','August'), t('files','September'), t('files','October'), t('files','November'), t('files','December') ]; - return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+date.getMinutes(); + return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+((date.getMinutes()<10)?'0':'')+date.getMinutes(); } |