xiejiangzhi@gmail.com (Jon Xie)
- Login: xiejiangzhi@gmail.com
- Email: xiejiangzhi@gmail.com
- Registered on: 12/01/2015
- Last sign in: 12/01/2015
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/01/2015
-
07:02 AM Ruby Bug #11755: ENV['TZ'] timezone
- 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 -
06:05 AM Ruby Bug #11755: ENV['TZ'] timezone
- Matthew Kerwin wrote:
> Jon Xie wrote:
> ...
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 '
~~~
... -
05:24 AM Ruby Bug #11755: ENV['TZ'] timezone
- Nobuyoshi Nakada wrote:
> Seems correct output.
> ...
I'm expect:
~~~
ENV['TZ'] = 'GMT+8'; Time.now
=> 2015-12-01 11:35:06 +0800
~~~
What reason is this excuse me? -
03:55 AM Ruby Bug #11755: ENV['TZ'] timezone
- System: OS X 10.10.5
-
03:49 AM Ruby Bug #11755 (Third Party's Issue): ENV['TZ'] timezone
- ~~~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?