ZF-10584: Zend_Date::setTime doesn't check if dst change
Description
calling method Zend_Date::setTime("08:00:00") on date "2010-10-31 00:00:00" results with date "2010-10-31 07:00:00". This is because of dst change.
calling method Zend_Date::setTime("08:00:00") on date "2010-10-31 00:00:00" results with date "2010-10-31 07:00:00". This is because of dst change.
Comments
Posted by Adam George (asgeo1) on 2011-04-06T05:11:17.000+0000
I'm having this same problem. I'm in timezone "Australia/Melbourne"
Daylight savings finished on 3-Apr-2011 and so we lost the hour between 2am-3am on that day.
This code triggers the problem for me:
I think the priority should be bumped up. A bug like this in setHour/setTime means you can't really use the function for a lot of things.
Posted by Adam George (asgeo1) on 2011-04-06T05:22:29.000+0000
Sorry, I mean we gained an hour that day.
Posted by Edward "Sonny" Savage (sonnysavage) on 2011-08-24T19:56:32.000+0000
I just spent several hours tracking this down in my calendar application.
';Posted by Edward "Sonny" Savage (sonnysavage) on 2011-08-24T20:08:17.000+0000
Why is this marked as minor? I'm not sure how to work around it.
Posted by Edward "Sonny" Savage (sonnysavage) on 2011-08-25T13:26:05.000+0000
I posted on Stack Overflow, and have a work around for now. It's far from optimal. This really needs to be fixed. http://stackoverflow.com/questions/7181702/…
Posted by Stéphane (stephane) on 2012-10-29T11:34:26.000+0000
Upvoted. It would be really nice to have a fix for this.