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 61AFD19C0534 for ; Tue, 1 Dec 2015 14:15:10 +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 F27ADB5D844 for ; Tue, 1 Dec 2015 14:46:30 +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 7E04E18CC7B2 for ; Tue, 1 Dec 2015 14:46:31 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id DADB81204FB; Tue, 1 Dec 2015 14:46:29 +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 B223A12048B for ; Tue, 1 Dec 2015 14:46:25 +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=pElgQCC7zIMrerBkG3CW8LcfZfk=; b=YCqGmJWHVuuvv8NqkL 01JMJi1OJ3ivjOnWOyKgQbG9UF1PDoRHvTJqGYBodClCldCl+d9PKD+cIjnyjfCY OR73frjCZqWfnd8W/p6mqYCOpQjPeoO6yYg+ZRw89vYozPj4bc5dvMVMEZWYHDt9 8Nl6rC2fjVa843px1AWa9vgvw= Received: by filter0850p1mdw1.sendgrid.net with SMTP id filter0850p1mdw1.29819.565D342E2B 2015-12-01 05:46:22.617609498 +0000 UTC Received: from herokuapp.com (ec2-54-82-47-117.compute-1.amazonaws.com [54.82.47.117]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id Mo3bxp0jSHmCfkQaHtxijg for ; Tue, 01 Dec 2015 05:46:22.685 +0000 (UTC) Date: Tue, 01 Dec 2015 05:46:22 +0000 From: matthew@kerwin.net.au 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: 46458 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11755 X-Redmine-Issue-Author: xiejiangzhi@gmail.com X-Redmine-Sender: phluid61 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5WEl6wi0mps+Qb7wmJZma3o9zKbKBVuLhuPu zCehJJbZh+uvjTEbHbcENBZVtFEQRQwUiHWsJz3bGzKVFoLdaIY8ghKsZfJ5ZeI1uQl8AVRUnplf4p IXNALlqun/3+ymyu/zlFCwZjApclggK57hDQ X-ML-Name: ruby-core X-Mail-Count: 71771 Subject: [ruby-core:71771] [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 Matthew Kerwin. 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... ---------------------------------------- Bug #11755: ENV['TZ'] timezone https://bugs.ruby-lang.org/issues/11755#change-55181 * 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/