Commit 7771c628 authored by Johannes Bill's avatar Johannes Bill

added Mocha Test

parent abd6e3fc
......@@ -127,7 +127,12 @@ function formatDate(date) {
}
function formatTime(date) {
return moment(date).format("HH:mm");
var hours = date.getHours().toString();
var minutes = date.getMinutes().toString();
if(hours.length < 2) hours = '0' + hours;
if(minutes.length < 2) minutes = '0' + minutes;
return hours + ':' + minutes;
// return moment(date).format("HH:mm");
}
function transformData(data, startDate, endDate) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment