Maros Kollar wrote:
>However i do not know how to prevent my application from failing in
>Brasil one day a year (or possibly longer) except by stop using the any
>time zones?!

You need to approach your problem differently.  Sao Paulo is a nasty
case because it jumps at midnight, but the same general problem occurs
in any timezone.  What exactly are you trying to achieve?  None of your
examples do anything with time of day, so perhaps you're only calculating
with whole days?  If that's the case, you could use UTC or the floating
timezone for your date arithmetic.  Or you could pick a time of day that's
always acceptable in your timezone (noon is a good bet, but there have
been a handful of offset jumps at local noon).  If you actually care
about a particular time of day in your local zone, you just have to be
prepared for that time to not exist, and catch the exception.

>Any suggestions how to work around this issue?

It all depends on what you're trying to achieve.

-zefram

Reply via email to