in reply to Time Convert Question
What time are you actually getting? If it works as you are assuming ($somewhere_time, as initialized, in UTC), and the sequential set_time_zone calls assign the original time to UTC and then convert it to NY, I would expect it to show as 04:19:12, not 10:19:12. NY is currently -0400 (behind UTC), not +0200. This assumes that the first call to set_time_zone sets the initial time zone, and the second converts it to NY.
What value are you actually seeing?
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time Convert Question
by Anonymous Monk on Jun 09, 2011 at 17:16 UTC | |
|
Re^2: Time Convert Question
by Anonymous Monk on Jun 09, 2011 at 17:32 UTC | |
by MidLifeXis (Monsignor) on Jun 09, 2011 at 17:51 UTC |