1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "Optimize Time.utc"

This reverts commit r63848.
It breaks tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-07-04 10:59:36 +00:00
parent dda048381f
commit bd9a78a0fe

3
time.c
View file

@ -1095,9 +1095,6 @@ init_leap_second_info(void)
timew = timegmw_noleapsecond(&vtm); timew = timegmw_noleapsecond(&vtm);
number_of_leap_seconds_known = NUM2INT(w2v(wsub(TIMET2WV(known_leap_seconds_limit), rb_time_unmagnify(timew)))); number_of_leap_seconds_known = NUM2INT(w2v(wsub(TIMET2WV(known_leap_seconds_limit), rb_time_unmagnify(timew))));
if (number_of_leap_seconds_known == 0) {
known_leap_seconds_limit = 0;
}
} }
} }