JRuby

Time.local should honor ENV['TZ']

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 0.9.2
  • Fix Version/s: JRuby 0.9.8
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Number of attachments :
    1

Description

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

Activity

Hide
Bill Dortch added a comment -

This should fix it.

Show
Bill Dortch added a comment - This should fix it.
Hide
Ola Bini added a comment -

Seems good. Thanks.

Show
Ola Bini added a comment - Seems good. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: