diff options
author | Nat Lasseter <user@4574.co.uk> | 2025-03-10 20:35:52 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2025-03-10 20:35:52 +0000 |
commit | 02d7497e2f1d2062a98a8fa3da83fcc6079829e9 (patch) | |
tree | f2ce4ee1e4a0a0b1ec58ccc37e0c31983e75330d /cgi/home.cgi | |
parent | 29802b71af3de0c62a8b6aa37bb32e96dc4ff899 (diff) |
fix date ordinals
Diffstat (limited to 'cgi/home.cgi')
-rw-r--r-- | cgi/home.cgi | 8 |
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 |