Issue Details (XML | Word | Printable)

Key: JRUBY-643
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Thomas E Enebo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

Time.local should honor ENV['TZ']

Created: 01/Mar/07 09:02 PM   Updated: 30/Apr/07 03:13 AM   Resolved: 03/Mar/07 08:21 AM
Return to search
Component/s: Core Classes/Modules
Affects Version/s: JRuby 0.9.2
Fix Version/s: JRuby 0.9.8

Time Tracking:
Not Specified

File Attachments: 1. Text File timezone.patch (3 kB)



 Description  « Hide
ENV['TZ'] = 'NZ'
p Time.local(2006,10,1,3, 0, 1)

Unless you are in new zealand you will see something other than:

Sun Oct 01 03:00:01 NZDT 2006

localtime needs to check environment variable



Bill Dortch added a comment - 03/Mar/07 01:24 AM

This should fix it.


Ola Bini added a comment - 03/Mar/07 08:21 AM

Seems good. Thanks.