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:
parent
dda048381f
commit
bd9a78a0fe
1 changed files with 0 additions and 3 deletions
3
time.c
3
time.c
|
@ -1095,9 +1095,6 @@ init_leap_second_info(void)
|
|||
timew = timegmw_noleapsecond(&vtm);
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue