diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-13 03:31:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-13 03:31:01 +0000 |
commit | 019c891508334d0437140ac12badbceab86827bd (patch) | |
tree | 7dd94072dce29c547ba50a3729db7c8245f09f57 | |
parent | 128b6577b337e240f6e5141b9fbf380cd4d4d11a (diff) |
time.c: do not set utc_offset in vtm_add_offset
* time.c (vtm_add_offset): just add offset to other components
only. removed subtraction of utc_offset as it is overwritten
always immediately in callers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | time.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1911,8 +1911,6 @@ vtm_add_offset(struct vtm *vtm, VALUE off) int sec, min, hour; int day; - vtm->utc_offset = subv(vtm->utc_offset, off); - if (lt(off, INT2FIX(0))) { sign = -1; off = neg(off); |