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
In reply to Re: Time Convert Question
by MidLifeXis
in thread Time Convert Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |