Skip to content

Commit

Permalink
4,800 weeks fix
Browse files Browse the repository at this point in the history
  • Loading branch information
golovin committed Feb 8, 2017
1 parent c49f77c commit e4f2099
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/app/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ define(["app/utils", "moment", "d3-context-menu", "ion.rangeSlider", "app/histor
var se = JSON.parse(sessionStorage.getItem("se"));
var start = new Date(se[0].start);
var end = new Date(se[0].end);
var startYear = moment(start).format('YYYY');
var startDay = moment(start).format('DDD');
var endYear = moment(end).format('YYYY');
var endDay = moment(end).format('DDD');
var startYear = parseInt(moment(start).format('YYYY'));
var startDay = parseInt(moment(start).format('DDD'));
var endYear = parseInt(moment(end).format('YYYY'));
var endDay = parseInt(moment(end).format('DDD'));
if (endYear !== startYear) {
endDay = endDay + 365;
}
Expand Down

0 comments on commit e4f2099

Please sign in to comment.