summaryrefslogtreecommitdiff
path: root/lib/time.rb
diff options
context:
space:
mode:
-rw-r--r--lib/time.rb3
1 files changed, 2 insertions, 1 deletions
@@ -214,7 +214,8 @@ class Time
if o != 0 then hour += o; o, hour = hour.divmod(24); off += o end
if off != 0
day += off
- if month_days(year, mon) < day
mon += 1
if 12 < mon
mon = 1