diff options
author | Nat Lasseter <user@4574.co.uk> | 2025-03-10 22:46:21 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2025-03-10 22:46:21 +0000 |
commit | 993f14d4d4777957d3f9c0d7722a59af6c4cb0a1 (patch) | |
tree | c03d3f6796ea92dd6719cfb1a73a37af7d6b4bb9 /cgi/home.cgi | |
parent | baf5881387e4201af5297864acdb08520f85565d (diff) |
Fix waste days
Diffstat (limited to 'cgi/home.cgi')
-rw-r--r-- | cgi/home.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi index 603e7cf..2290340 100644 --- a/cgi/home.cgi +++ b/cgi/home.cgi @@ -1,3 +1,4 @@ +require "date" require "json" require "net/http" require "time" @@ -18,7 +19,7 @@ def next_collection else "in #{days} days" end - dateword = %w(Monday Tuesday Wednesday Thursday Friday Saturday Sunday)[cdate.wday] + dateword = Date::DAYNAMES[cdate.wday] dateord = case cdate.day when 1,21,31; "st" when 2,22; "nd" |