forked from mbielanczuk/jQuery.Gantt
-
Notifications
You must be signed in to change notification settings - Fork 305
Open
Labels
Milestone
Description
When zoomed to the week scale, the timerange from 01.01.2012 to 31.12.2013 is rendered incorrectly. It will just have the width of the containing text.
Problem is the wrong calculation of calender weeks (f.ex 2014 has a 0 calendar week). also it seems there are different ways the calendar week is calculated in the code instead of just one.
Here is an example gantt:
$(".gantt").gantt({
scale: "weeks",
scrollToToday: false,
source: [{
name: "Sprint 0",
desc: "Analysis",
values: [{
from: "/Date(1325372400000)/",
to: "/Date(1388444400000)/",
label: "Requirement Gathering",
customClass: "ganttRed"
}]
}] });
(jsFiddle)
I vote for using the calendar week definition of ISO 8601