diff options
Diffstat (limited to 'system/admin/static/common/js/util.js')
-rw-r--r-- | system/admin/static/common/js/util.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/system/admin/static/common/js/util.js b/system/admin/static/common/js/util.js index cf47af4..7bd821d 100644 --- a/system/admin/static/common/js/util.js +++ b/system/admin/static/common/js/util.js @@ -46,13 +46,10 @@ function getPartialTime(unix) { function getPartialDate(unix) { var date = new Date(unix); var d = {}; + d.yyyy = date.getFullYear(); - var month = date.getMonth()+1; - if (month < 10) { - month = "0" + String(month); - } - d.mm = month; + d.mm = date.getMonth()+1; var day = date.getDate(); if (day < 10) { |