ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:71766] [Ruby trunk - Bug #11755] [Open] ENv['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
@ 2015-12-01  3:49 ` xiejiangzhi
  2015-12-01  3:55 ` [ruby-core:71767] [Ruby trunk - Bug #11755] " xiejiangzhi
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: xiejiangzhi @ 2015-12-01  3:49 UTC (permalink / raw)
  To: ruby-core

Issue #11755 has been reported by Jon Xie.

----------------------------------------
Bug #11755: ENv['TZ'] timezone
https://bugs.ruby-lang.org/issues/11755

* Author: Jon Xie
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.3
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
~~~
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71767] [Ruby trunk - Bug #11755] ENv['TZ'] timezone
       [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 ` xiejiangzhi
  2015-12-01  4:22 ` [ruby-core:71769] [Ruby trunk - Bug #11755] [Feedback] ENV['TZ'] timezone nobu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: xiejiangzhi @ 2015-12-01  3:55 UTC (permalink / raw)
  To: ruby-core

Issue #11755 has been updated by Jon Xie.


System: OS X 10.10.5

----------------------------------------
Bug #11755: ENv['TZ'] timezone
https://bugs.ruby-lang.org/issues/11755#change-55177

* Author: Jon Xie
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.3
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
~~~
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71769] [Ruby trunk - Bug #11755] [Feedback] ENV['TZ'] timezone
       [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 ` nobu
  2015-12-01  5:24 ` [ruby-core:71770] [Ruby trunk - Bug #11755] " xiejiangzhi
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2015-12-01  4:22 UTC (permalink / raw)
  To: ruby-core

Issue #11755 has been updated by Nobuyoshi Nakada.

Subject changed from ENv['TZ'] timezone to ENV['TZ'] timezone
Description updated
Status changed from Open to Feedback

Seems correct output.
What do you expect?

----------------------------------------
Bug #11755: ENV['TZ'] timezone
https://bugs.ruby-lang.org/issues/11755#change-55179

* 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71770] [Ruby trunk - Bug #11755] ENV['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-12-01  4:22 ` [ruby-core:71769] [Ruby trunk - Bug #11755] [Feedback] ENV['TZ'] timezone nobu
@ 2015-12-01  5:24 ` xiejiangzhi
  2015-12-01  5:46 ` [ruby-core:71771] " matthew
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: xiejiangzhi @ 2015-12-01  5:24 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71771] [Ruby trunk - Bug #11755] ENV['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-12-01  5:24 ` [ruby-core:71770] [Ruby trunk - Bug #11755] " xiejiangzhi
@ 2015-12-01  5:46 ` matthew
  2015-12-01  6:05 ` [ruby-core:71772] " xiejiangzhi
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: matthew @ 2015-12-01  5:46 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71772] [Ruby trunk - Bug #11755] ENV['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-12-01  5:46 ` [ruby-core:71771] " matthew
@ 2015-12-01  6:05 ` xiejiangzhi
  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
  7 siblings, 0 replies; 8+ messages in thread
From: xiejiangzhi @ 2015-12-01  6:05 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71775] [Ruby trunk - Bug #11755] ENV['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2015-12-01  6:05 ` [ruby-core:71772] " xiejiangzhi
@ 2015-12-01  7:02 ` xiejiangzhi
  2015-12-01  9:55 ` [ruby-core:71777] [Ruby trunk - Bug #11755] [Third Party's Issue] " nobu
  7 siblings, 0 replies; 8+ messages in thread
From: xiejiangzhi @ 2015-12-01  7:02 UTC (permalink / raw)
  To: ruby-core

Issue #11755 has been updated by Jon Xie.


TZ database https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
'Etc/GMT+8'  corresponding UTC is '-08:00'

@Nobuyoshi Nakada @Matthew Kerwin thanks

----------------------------------------
Bug #11755: ENV['TZ'] timezone
https://bugs.ruby-lang.org/issues/11755#change-55184

* 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:71777] [Ruby trunk - Bug #11755] [Third Party's Issue] ENV['TZ'] timezone
       [not found] <redmine.issue-11755.20151201034952@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2015-12-01  7:02 ` [ruby-core:71775] " xiejiangzhi
@ 2015-12-01  9:55 ` nobu
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2015-12-01  9:55 UTC (permalink / raw)
  To: ruby-core

Issue #11755 has been updated by Nobuyoshi Nakada.

Status changed from Feedback to Third Party's Issue

It's the convention.

----------------------------------------
Bug #11755: ENV['TZ'] timezone
https://bugs.ruby-lang.org/issues/11755#change-55186

* Author: Jon Xie
* Status: Third Party's Issue
* 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-01  9:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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 ` [ruby-core:71772] " xiejiangzhi
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

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).