aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-13 03:31:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-13 03:31:01 +0000
commit019c891508334d0437140ac12badbceab86827bd (patch)
tree7dd94072dce29c547ba50a3729db7c8245f09f57 /time.c
parent128b6577b337e240f6e5141b9fbf380cd4d4d11a (diff)
downloadruby-019c891508334d0437140ac12badbceab86827bd.tar.gz
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
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/time.c b/time.c
index 95a134c453..9035a38407 100644
--- a/time.c
+++ b/time.c
@@ -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);