Project

General

Profile

Actions

Bug #1972

closed

Changing ENV['TZ'] of a running process should change behavior of Time

Added by shri (Shri Borde) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.1p129
Backport:
[ruby-core:25010]

Description

=begin
Running the attached rb1.rb prints "EST AST EST AST" on Mac OS and Linux. But it prints the following output on Windows Vista with 1.8.6p287 as well as 1.9.1p129.

Ame
Asi
Pacific Standard Time
Pacific Standard Time

On non-Windows, the last two lines printed are different from each other. On Windows, they are the same.

Also, while the first two lines are different from each other on both Windows and non-Windows, the results do not match across Windows and non-Windows.
=end


Files

rb1.rb (346 Bytes) rb1.rb shri (Shri Borde), 08/21/2009 08:28 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0