id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
8959	[PATCH] trac 0.11 milestone dates are NOT microseconds	bof	ChrisNelson	Testing this plugin under 0.11, I experienced at first strange browser-eats-all-my-memory phenomena, happening both with Firefox and Chrome. I'm talking about trying to take 1 GB of memory within 10 seconds + crashing because of that.\r\n\r\nSome testing revealed that that happened because the JS attempted to display all days from 1/1/1970 until today, because it appeared to see milestone start/end dates of 1/1/1970.\r\n\r\nThese milestones do have end dates correctly set, i.e. not {{{== 0}}}\r\n\r\nInspecting the code, I found out that it unconditionally expects milestone dates to be in microsecond format. However, for trac 0.11, that is not the case - they are seconds-since-the-epoch. Dividing these by 1000000, gives a timestamp very near 1/1/1970......\r\n\r\nThe appended patch tries to handle the format difference heuristically, by looking at the timestamp value, and only dividing by 1000000 when it is smaller than 2^32-1.\r\n	defect	closed	high	TracJsGanttPlugin	normal	fixed		bobrien@newtonrobotics.com	0.11
