From: xiejiangzhi@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:71772] [Ruby trunk - Bug #11755] ENV['TZ'] timezone
Date: Tue, 01 Dec 2015 06:05:54 +0000 [thread overview]
Message-ID: <redmine.journal-55182.20151201060553.8bd904393104ecce@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11755.20151201034952@ruby-lang.org
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/
next prev parent reply other threads:[~2015-12-01 5:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
2015-12-01 3:49 ` [ruby-core:71766] [Ruby trunk - Bug #11755] [Open] ENv['TZ'] timezone xiejiangzhi
2015-12-01 3:55 ` [ruby-core:71767] [Ruby trunk - Bug #11755] " xiejiangzhi
2015-12-01 4:22 ` [ruby-core:71769] [Ruby trunk - Bug #11755] [Feedback] ENV['TZ'] timezone nobu
2015-12-01 5:24 ` [ruby-core:71770] [Ruby trunk - Bug #11755] " xiejiangzhi
2015-12-01 5:46 ` [ruby-core:71771] " matthew
2015-12-01 6:05 ` xiejiangzhi [this message]
2015-12-01 7:02 ` [ruby-core:71775] " xiejiangzhi
2015-12-01 9:55 ` [ruby-core:71777] [Ruby trunk - Bug #11755] [Third Party's Issue] " nobu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-55182.20151201060553.8bd904393104ecce@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).