diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-04-07 16:34:34 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-04-07 16:34:34 (GMT) |
commit | c4e22d6740e53e837fec63ccf27cb1043982dd93 (patch) | |
tree | a57eadb8ca815e5e096c517d9d9cdef88e66b6bf /www/js/utils.js | |
parent | 57f2f75270d0c067755248677217942feb8dbd3e (diff) |
fix date/time parsing in specials listing
Diffstat (limited to 'www/js/utils.js')
-rw-r--r-- | www/js/utils.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/utils.js b/www/js/utils.js index 7bd5035..c3d196f 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -113,6 +113,12 @@ function format_durationms(time) { return h + ':' + m.pad(2) + ':' + s.pad(2) + '.' + hs; } +function compare_date(date1, date2) { + var d1 = new Date(date1).setHours(0,0,0,0); + var d2 = new Date(date2).setHours(0,0,0,0); + return d1 == d2; +} + function get_rd_week(msEpoch) { // // This computes the current Rivendell Week based on the number |