Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Not A Bug
-
Affects Version/s: JRuby 1.1RC3, JRuby 1.1, JRuby 1.1.1
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Hideuname: Linux 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux
java -version: java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)Showuname: Linux 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux java -version: java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
-
Number of attachments :
Description
Time class assumes UTC timezone.
Code below runs differently in cruby and jruby
puts Time.now
cruby correctly identifies timezone is EST, while jruby produces a UTC time.
'TZ' environment variable is not set.
Issue Links
| This issue relates to: | ||||
| JRUBY-3724 | Jruby's "Time.now" output always outputs UTC; doesn't match MRI. |
|
|
|
What's shell command 'date' prints?
(just trying to understand the environment).