ruby-changes:54588
From: nobu <ko1@a...>
Date: Sun, 13 Jan 2019 12:31:05 +0900 (JST)
Subject: [ruby-changes:54588] nobu:r66803 (trunk): time.c: do not set utc_offset in vtm_add_offset
nobu 2019-01-13 12:31:01 +0900 (Sun, 13 Jan 2019) New Revision: 66803 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66803 Log: 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. Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 66802) +++ time.c (revision 66803) @@ -1911,8 +1911,6 @@ vtm_add_offset(struct vtm *vtm, VALUE of https://github.com/ruby/ruby/blob/trunk/time.c#L1911 int sec, min, hour; int day; - vtm->utc_offset = subv(vtm->utc_offset, off); - if (lt(off, INT2FIX(0))) { sign = -1; off = neg(off); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/