Subsecond of Time::tm should be 0
This commit is contained in:
parent
276f6a225d
commit
95bef7b69a
Notes:
git
2020-11-28 15:42:06 +09:00
1
time.c
1
time.c
@ -5498,6 +5498,7 @@ tm_from_time(VALUE klass, VALUE time)
|
|||||||
ttm = DATA_PTR(tm);
|
ttm = DATA_PTR(tm);
|
||||||
v = &vtm;
|
v = &vtm;
|
||||||
GMTIMEW(ttm->timew = tobj->timew, v);
|
GMTIMEW(ttm->timew = tobj->timew, v);
|
||||||
|
ttm->timew = wsub(ttm->timew, v->subsecx);
|
||||||
v->subsecx = INT2FIX(0);
|
v->subsecx = INT2FIX(0);
|
||||||
v->zone = Qnil;
|
v->zone = Qnil;
|
||||||
ttm->vtm = *v;
|
ttm->vtm = *v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user