I've written some code for a dynamically created graph and it uses Date.UTC() to create formatted dates.
It works completely fine within months, however I'm having trouble with crossing over months, i.e. Feb to March creates 29th, 30th and 31st Feb and now I have found an error that makes the 31st May 1st June.......
I've tried to find an answer but no luck yet. Is there a simple fix that I am overlooking or is there a fix?
s.Set('chart.xmin', Date.UTC(<?php echo $startyear.",".$startmonth.",".$startday.",".$starthour.",".$startminute; ?>));
s.Set('chart.xmax', Date.UTC(<?php echo $finishyear.",".$finishmonth.",".$finishday.",".$finishhour.",".$finishminute; ?>));
Cheers
James