aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/home.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi
index c569055..fe567b2 100644
--- a/cgi/home.cgi
+++ b/cgi/home.cgi
@@ -18,10 +18,10 @@ def next_collection
end
dateword = %w(Monday Tuesday Wednesday Thursday Friday Saturday Sunday)[cdate.wday]
- dateord = case cdate.day.digits.first
- when 1; "st"
- when 2; "nd"
- when 3; "rd"
+ dateord = case cdate.day
+ when 1,21,31; "st"
+ when 2,22; "nd"
+ when 3,23; "rd"
else "th"
end