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
