use Array#reduce instead of eval() in util.dateDiff()