From: Yui NARUSE Date: 2011-09-28T21:57:34+09:00 Subject: [ruby-core:39760] [Ruby 1.9 - Bug #5377] Timezone Bug Issue #5377 has been updated by Yui NARUSE. Priority changed from High to Normal Your area seems changed the timezone. Where is the timezone? ---------------------------------------- Bug #5377: Timezone Bug http://redmine.ruby-lang.org/issues/5377 Author: Jan Pilz Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 1.8.7, 1.9.1 jpilz@jpilz:~$ irb irb(main):001:0> Time.now => Wed Sep 28 14:26:19 +0200 2011 irb(main):002:0> Time.local(1981, 9, 27) => Sun Sep 27 00:00:00 +0200 1981 irb(main):003:0> Time.local(1981, 9, 28) => Mon Sep 28 00:00:00 +0100 1981 irb(main):004:0> Time.local(1996, 3, 31) => Sun Mar 31 00:00:00 +0100 1996 irb(main):005:0> Time.local(1996, 4, 1) => Mon Apr 01 00:00:00 +0200 1996 irb(main):006:0> Time.local(1981, 9, 27) + (60 * 60 * 24) => Sun Sep 27 23:00:00 +0100 1981 irb(main):007:0> Time.local(1981, 3, 31) + (60 * 60 * 24) => Wed Apr 01 00:00:00 +0200 1981 seems it Time.local changes timezone between 1981/09/28 and 1996/03/31 to +0100. Same behaviour under ruby 1.8.7, 1.9.1 and jruby, windows and linux. Best regards, Jan -- http://redmine.ruby-lang.org