aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/home.cgi3
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"