This commit is contained in:
2025-01-20 16:26:27 +09:00
parent 111c6e9b29
commit 79f6747f79

View File

@@ -277,15 +277,15 @@ function ExpUtil.extract_time_units(ticks, units)
-- Remove units that are not requested -- Remove units that are not requested
if not units.days then if not units.days then
rtn.hours = rtn.hours + rtn.days * 24 rtn.hours = rtn.hours + (rtn.days or 0) * 24
rtn.days = nil rtn.days = nil
end end
if not units.hours then if not units.hours then
rtn.minutes = rtn.minutes + rtn.hours * 60 rtn.minutes = rtn.minutes + (rtn.hours or 0) * 60
rtn.hours = nil rtn.hours = nil
end end
if not units.minutes then if not units.minutes then
rtn.seconds = rtn.seconds + rtn.minutes * 60 rtn.seconds = rtn.seconds + (rtn.minutes or 0) * 60
rtn.minutes = nil rtn.minutes = nil
end end
if not units.seconds then if not units.seconds then