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 | f2b6ae1a3c790b8079593b152d9b363e678916c7 (patch) | |
tree | 1df706665959ba4d9238cafba95098ee228fdc2e /ext/date | |
parent | ab1098336d02ccb568545b520f96f8511cbff9a0 (diff) | |
download | ruby-f2b6ae1a3c790b8079593b152d9b363e678916c7.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/date')
-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; } /* |