On Mon, Mar 31, 2008 at 04:34:19AM +0200, Gergely Peli wrote:
> Unfortunately we run logrotate more than once a day, and it was bogus  
> all day after turning daylight saving on. It seems to be because the  
> "struct tm" fields are initialized with the current date, time 0:00, but  
> with the current time's daylight saving settings. But at 0:00 the  
> tm_isdst was different than the "current" tm_isdst, which causes the  
> mktime+localtime pair to "correct" it by setting the local time back one  
> hour to yesterday's 23:00.

Many thanks for that most helpful analysis. I'll try to assemble a patch. If
anyone has suggestions for patches, they would be welcome.

-- 
Paul Martin <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to