From: xiejiangzhi@... Date: 2015-12-01T06:05:54+00:00 Subject: [ruby-core:71772] [Ruby trunk - Bug #11755] ENV['TZ'] timezone Issue #11755 has been updated by Jon Xie. Matthew Kerwin wrote: > Jon Xie wrote: > > What reason is this excuse me? > > Presumably you took 12 seconds between the first two commands, and then another 6 between the second and third. The clock keeps on ticking... I'm sorry, I didn't describe clearly.... I think timezone should be '+0800' ~~~ ENV['TZ'] = 'GMT+8'; Time.now => 2015-12-01 11:35:06 +0800 ~~~ And then it was '-0800 ' ~~~ ENV['TZ'] = 'GMT+8'; Time.now => 2015-11-30 19:35:18 -0800 ~~~ ---------------------------------------- Bug #11755: ENV['TZ'] timezone https://bugs.ruby-lang.org/issues/11755#change-55182 * Author: Jon Xie * Status: Feedback * Priority: Normal * Assignee: * ruby -v: 2.2.3 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ~~~ruby 2.2.3 :001 > Time.now => 2015-12-01 11:35:06 +0800 2.2.3 :002 > ENV['TZ'] = 'GMT+8'; Time.now => 2015-11-30 19:35:18 -0800 2.2.3 :003 > ENV['TZ'] = 'GMT-8'; Time.now => 2015-12-01 11:35:24 +0800 ~~~ Why is this so? -- https://bugs.ruby-lang.org/