diff options
author | Deiz <silverwraithii@gmail.com> | 2012-10-17 12:29:02 -0400 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-10-19 19:36:53 +0200 |
commit | e10d38fea0956b01064f694bca3e827ba3f3e261 (patch) | |
tree | ec06fb644366db50a4ee5a0bddd5eb7f643b0739 /src/print_ddate.c | |
parent | 35f3bcb348cdbc43060a23c2116259bb74c981a1 (diff) |
Reduce the season day to 0-9 to properly print ordinal suffixes
Diffstat (limited to 'src/print_ddate.c')
-rw-r--r-- | src/print_ddate.c | 2 |
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; |