strftime %z has mixed '+' and '-'
---------------------------------

                 Key: JRUBY-3056
                 URL: http://jira.codehaus.org/browse/JRUBY-3056
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.4
         Environment: java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)


            Reporter: Jani Soila
            Assignee: Thomas E Enebo
            Priority: Critical


> TZ='Europe/Helsinki'; export TZ
> jruby -e "puts Time.now.strftime('%z %Z')"

Produces '-0300 EEST' instead of the correct '+0300 EEST'. Same effect in NY:

> TZ='America/New_York'; export TZ
> jruby -e "puts Time.now.strftime('%z %Z')"

Outputs '+0400 EDT' instead of '-0400 EDT'.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to