Daylight Savings CGI bug

Ethan Galstad egalstad at nagios.org
Fri Jul 3 18:11:58 CEST 2009


Mark Goldfinch wrote:
> Greetings all,
> 
> I've discovered a Daylight Savings Time bug within the avail, histogram, summary and trends CGIs.
> 
> To reproduce, run a custom report timeperiod for a duration which spans migration into or out of DST.  As an example using NZST either 1st Apr to 30th Apr or 1st Sep to 30th Sep.  Note the start and end time, either the start or end time will be an hour out from what one would expect.
> 
> Please see the attached patch to fix.  The problem arises from using the generated tm_isdst flag from calling localtime(&current_time) within compute_report_times().  It should be noted setting tm_isdst=-1 is used elsewhere within these CGIs already.
> 
> Thanks,
> 


Fixed in CVS.  Thanks.


- Ethan Galstad

------------------------------------------------------------------------------




More information about the Developers mailing list