summaryrefslogtreecommitdiff
path: root/src/print_ddate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_ddate.c')
-rw-r--r--src/print_ddate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_ddate.c b/src/print_ddate.c
index 30bdc52..6d39c51 100644
--- a/src/print_ddate.c
+++ b/src/print_ddate.c
@@ -95,7 +95,7 @@ static int format_output(char *outwalk, char *format, struct disc_time *dt) {
break;
case 'e':
outwalk += sprintf(outwalk, "%d", dt->season_day + 1);
- switch (dt->season_day) {
+ switch (dt->season_day % 10) {
case 0:
outwalk += sprintf(outwalk, "st");
break;