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 9DEA819C0534 for ; Tue, 1 Dec 2015 13:53:08 +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 356FCB5D901 for ; Tue, 1 Dec 2015 14:24:29 +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 B16F618CC7B6 for ; Tue, 1 Dec 2015 14:24:29 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 43ED11204E4; Tue, 1 Dec 2015 14:24:28 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id E491B120485 for ; Tue, 1 Dec 2015 14:24:23 +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=LrmsxCQ3Ha56bdrvwd+OCmY08rg=; b=DHATxJPXEooszo4wbo xnETkIHBEXa3wwEiaQbOH4DA0m+9EKw9jU0WeHUoCdaHPXH8eDvFswtad5dOLukf U3KT8sqNBCxqsKSAcasTLk8ehVxMHqLiUKusIZliij4QsbhQ0HrHdW7KnV1rxjcx sFKrfewOdfPO0W/7HfqdUvVM8= Received: by filter0663p1mdw1.sendgrid.net with SMTP id filter0663p1mdw1.8443.565D2F0436 2015-12-01 05:24:20.813263782 +0000 UTC Received: from herokuapp.com (ec2-50-17-34-135.compute-1.amazonaws.com [50.17.34.135]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id NdfYCF98R36JB3Y-JHWTaA for ; Tue, 01 Dec 2015 05:24:20.764 +0000 (UTC) Date: Tue, 01 Dec 2015 05:24:20 +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: 46457 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS7u3IIve23XzHy8DhGkxPpBPstPEZDpDgR8/+ jglCWqy8QyjhtgqT3pQ2bp/UpnlgALLuTn044Pe/vObd4CH/ZW2n1eiZ0Wq5m+VI3tncxWp8Fr7z9P hldELqwF1g7rNhlxOYQOp7bEpAl8LTTz72zP X-ML-Name: ruby-core X-Mail-Count: 71770 Subject: [ruby-core:71770] [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. Nobuyoshi Nakada wrote: > Seems correct output. > What do you expect? I'm expect: ~~~ ENV['TZ'] = 'GMT+8'; Time.now => 2015-12-01 11:35:06 +0800 ~~~ What reason is this excuse me? ---------------------------------------- Bug #11755: ENV['TZ'] timezone https://bugs.ruby-lang.org/issues/11755#change-55180 * 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/