diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-15 13:21:10 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-15 13:21:10 +0000 |
commit | 795b03c71c7949c0c260139d6f8a3e289826fdca (patch) | |
tree | 4b077adcbb200de927acac356a919db107d13de2 /time.c | |
parent | 3360a65ba7fc04f12fd470aaa6c91a0b94013abd (diff) | |
download | ruby-795b03c71c7949c0c260139d6f8a3e289826fdca.tar.gz |
* time.c (time_add): propagate fixed time offset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2909,6 +2909,11 @@ time_add(struct time_object *tobj, VALUE offset, int sign) GetTimeval(result, tobj); TIME_SET_UTC(tobj); } + else if (TIME_FIXOFF_P(tobj)) { + VALUE off = tobj->vtm.utc_offset; + GetTimeval(result, tobj); + TIME_SET_FIXOFF(tobj, off); + } return result; } |