Commit 3bec1ead authored by Zach Knox's avatar Zach Knox

fixed days being wrong in daily view

Had to multiply by 1000... oops...
parent f098c67b
......@@ -100,7 +100,8 @@ Template.weather.helpers({
return hourDataArray.slice(startIndex, startIndex+12)
},
getDayNameFromTime: function(timestamp) {
var given = new Date(timestamp);
var given = new Date(timestamp * 1000);
console.log(given);
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
return days[ given.getDay() ];
},
......
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