0

I found a workaround for Zend Date's DST Bug, but the workaround introduces another bug. The workaround simply sets the time twice. This introduces another bug, if the resulting date crosses the date boundary, the the day get incremented or decremented.

I am wondering if there's a way to determine that the date at hand is a "time change" date, so that I can come up with a solid workaround to the Zend Date DST bug.

Community
  • 1
  • 1
Sonny
  • 8,204
  • 7
  • 63
  • 134

1 Answers1

0

It turns out that PHP's function localtime() returns whether or not the date is in DST. I've used that info update my sub-classed version of Zend_Date::setTime(). I've updated my post for Zend Date DST Bug to include this in the solution.

Community
  • 1
  • 1
Sonny
  • 8,204
  • 7
  • 63
  • 134