Timezone problems

Time.gm(26, 14, 12, 4, 3, 2003, 0, 0, false, -6).to_a
Returns:
[26, 14, 12, 4, 3, 2003, 2, 63, false, “Eastern Standard Time”]

I would expect it to give me back:
[26, 14, 12, 4, 3, 2003, 2, 63, false, “Central Standard Time”]

Any suggestions?

Hi,

Time.gm(26, 14, 12, 4, 3, 2003, 0, 0, false, -6).to_a
Returns:
[26, 14, 12, 4, 3, 2003, 2, 63, false, “Eastern Standard Time”]

I would expect it to give me back:
[26, 14, 12, 4, 3, 2003, 2, 63, false, “Central Standard Time”]

I would expect it to give me

[26, 14, 12, 4, 3, 2003, 2, 63, false, “UTC”]

since it should return time in UTC zone. Perhaps it’s because
localtime(2) on your platform (Windows?) is broken, that always
generates the local timezone name.

And note that 10th argument to Time.gm is ignored, just because
localtime(3) does not handle timezones other than UTC or local time
zone.

						matz.
···

In message “Timezone problems” on 03/03/21, “Michael Hale” mhale@rolemodelsoft.com writes: