From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id E0A4019C0024 for ; Tue, 1 Dec 2015 14:34:45 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 666EEB5D905 for ; Tue, 1 Dec 2015 15:06:06 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id EA72D18CC7E3 for ; Tue, 1 Dec 2015 15:06:06 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 203771204FC; Tue, 1 Dec 2015 15:06:05 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 7BFD312047B for ; Tue, 1 Dec 2015 15:06:01 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=10pwfcyaUvtxoWHw1nr8PMc8HbY=; b=sbW1PiozhckMxbMjay AAJA8nuO0jPA+jC5yqt3xCEAZ2OK+9ua6bbvuQZx/jNeWYISFCZgcrn2TM2bfvmk IBqVJ5/YMoQw8jGqPsZdN/8i4jfglDiBOJD/FJP6LUss7FXL1zKwTc96ITlbT6c7 TY/k/YD2lcTEIXak2TIZiiUuI= Received: by filter0559p1mdw1.sendgrid.net with SMTP id filter0559p1mdw1.13376.565D38C21E 2015-12-01 06:05:54.53960626 +0000 UTC Received: from herokuapp.com (ec2-184-73-2-107.compute-1.amazonaws.com [184.73.2.107]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id 3kqPP5ykTjGrk9GwIyrBXA for ; Tue, 01 Dec 2015 06:05:54.629 +0000 (UTC) Date: Tue, 01 Dec 2015 06:05:54 +0000 From: xiejiangzhi@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46459 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11755 X-Redmine-Issue-Author: xiejiangzhi@gmail.com X-Redmine-Sender: xiejiangzhi@gmail.com X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6QI94Fb0bOGm+18f2eGKfZyj2ZCqDQLkd0Qp bGDul6fJ26kXS+q+eBaxkSSUit/RHNspW8DhDmBlE7XAGzPRyWK5ljTtpkWSD/r1PlMKksaaWHf9cX eoWJDHoOCaC+16dmB8pPyj3UnI7S9vZOlNmT X-ML-Name: ruby-core X-Mail-Count: 71772 Subject: [ruby-core:71772] [Ruby trunk - Bug #11755] ENV['TZ'] timezone X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/