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:49:15 -0400 |
commit | 0045e64041661004375cff07baee8b8d361ff599 (patch) | |
tree | 3c5d92549e5fdae736b13242871799353f8cd342 | |
parent | b11b6afbb9364b722b5b20213165803f7c2732aa (diff) | |
download | nextcloud-server-0045e64041661004375cff07baee8b8d361ff599.tar.gz nextcloud-server-0045e64041661004375cff07baee8b8d361ff599.zip |
Fix time formatting for minutes, prepend 0 if minutes is less than 10
-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 89a20a529f3..8a60f70e1dd 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -519,5 +519,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(); } |