Re: [Nagios-devel] Daylight Savings CGI bug

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Daylight Savings CGI bug

Post by Guest »


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





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked