Anton Petrov created JRUBY-6512: ----------------------------------- Summary: Time.now shows wrong timezone for Moscow region Key: JRUBY-6512 URL: https://jira.codehaus.org/browse/JRUBY-6512 Project: JRuby Issue Type: Bug Components: Ruby 1.9.2 Affects Versions: JRuby 1.6.6 Environment: Windows 7 x64
>jruby -v jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.6.0_29) [Windows 7-x86-java] Reporter: Anton Petrov Assignee: Thomas E Enebo Priority: Minor When I call Ruby method Time.now it shows wrong timezone. Actually we aren't changing to daylight anymore, [starting this year|http://www.timeanddate.com/worldclock/timezone.html?n=166&syear=2010]. At the same time Java's class Date.new shows correct timezone. {noformat} >jruby -e "puts Time.now" 2012-02-29 19:26:59 +0300 {noformat} {noformat} >jruby -e "include Java; import java.util.Date; import >java.text.SimpleDateFormat; puts SimpleDateFormat.new(\"yyyy-MM-dd HH:mm:ss >Z\").format Date.new" 2012-02-29 20:26:56 +0400 {noformat} I tried to fix it in lib\ruby\1.9\date\format.rb, but this didn't help. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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