Project

General

Profile

Actions

Bug #11755

closed

ENV['TZ'] timezone

Added by xiejiangzhi@gmail.com (Jon Xie) over 8 years ago. Updated over 8 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:71766]

Description

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?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0