Browse Source

Bugfix final day of the month

master
Exa Stencil 4 months ago
parent
commit
aab558aa29
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      huge.rb

+ 6
- 0
huge.rb View File

@ -12,6 +12,12 @@ class Time
month = self.yday / 28
mday = self.yday % 28
# Adjust for last day of a month
if mday == 0
month -= 1
mday = 28
end
if self.yday == 365
# Extra Day
month = 13


Loading…
Cancel
Save