diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-12 11:40:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-12 11:40:37 +0000 |
commit | 456523e2ede3073767fd8cb73cc4b159c3608890 (patch) | |
tree | 1df706665959ba4d9238cafba95098ee228fdc2e /ext | |
parent | 991c159c17c186f23462ad08fc9389f88aee3ea7 (diff) | |
download | ruby-456523e2ede3073767fd8cb73cc4b159c3608890.tar.gz |
date_core.c: preserve timezone
* ext/date/date_core.c (time_to_time): should preserve timezone
info. [ruby-core:74889] [Bug #12271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/date_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 18a3a0d709..90350b0e1d 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -8406,12 +8406,12 @@ dt_lite_jisx0301(int argc, VALUE *argv, VALUE self) * call-seq: * t.to_time -> time * - * Returns a copy of self as local mode. + * Returns self. */ static VALUE time_to_time(VALUE self) { - return f_getlocal(self); + return self; } /* |