Bugs item #6368, was opened at 2006-10-27 23:45 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6368&group_id=426 Category: Core Group: 1.8.x Status: Open Resolution: None Priority: 3 Submitted By: David Wheeler (theory) Assigned to: Nobody (None) Summary: Time Changes Zones Initial Comment: When I set the TZ environment variable, Time.now properly sets the time zone (or, more specifically, the alias). But if I change the TZ environment variable to something else (or unset it), the existing time object will have its zone changed, too! Witness: #!/usr/bin/ruby -w tz = ENV['TZ'] ENV['TZ'] = 'Africa/Luanda' t = Time.now puts t ENV['TZ'] = 'Australia/Lord_Howe' puts t And the output: Sat Oct 28 00:41:30 WAT 2006 Sat Oct 28 00:41:30 LHST 2006 I think that the second output should also have "WAT" for the time zone. Thanks! David Wheeler <david / justatheory.com> ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6368&group_id=426