aboutsummaryrefslogtreecommitdiff
path: root/cgi/home.cgi
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2025-03-10 20:35:52 +0000
committerNat Lasseter <user@4574.co.uk>2025-03-10 20:35:52 +0000
commit02d7497e2f1d2062a98a8fa3da83fcc6079829e9 (patch)
treef2ce4ee1e4a0a0b1ec58ccc37e0c31983e75330d /cgi/home.cgi
parent29802b71af3de0c62a8b6aa37bb32e96dc4ff899 (diff)
fix date ordinals
Diffstat (limited to 'cgi/home.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