diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-17 17:02:55 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-17 17:02:55 -0700 |
commit | 6c6061400d641ddb347c208dc10c7e73bcebff6e (patch) | |
tree | badc9e232bb45fe5091631078b64bb57742e570c /system/admin/static/common/js/util.js | |
parent | 35a8d1e9dda22c8a40ae86e466fa840decf1e678 (diff) |
updates to time and date format
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) { |