summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index a0d762878..49b730b1e 100644
--- a/strings.c
+++ b/strings.c
@@ -339,7 +339,7 @@ static char *FormatYmdString(char *buff, uint16 number)
for (src = GetStringPtr(STR_0162_JAN + ymd.month); (*buff++ = *src++) != '\0';) {}
buff[-1] = ' ';
- return FormatNoCommaNumber(buff, ymd.year + MAX_YEAR_BEGIN_REAL);
+ return FormatNoCommaNumber(buff, BASE_YEAR + ymd.year);
}
static char *FormatMonthAndYear(char *buff, uint16 number)
@@ -352,7 +352,7 @@ static char *FormatMonthAndYear(char *buff, uint16 number)
for (src = GetStringPtr(STR_MONTH_JAN + ymd.month); (*buff++ = *src++) != '\0';) {}
buff[-1] = ' ';
- return FormatNoCommaNumber(buff, ymd.year + MAX_YEAR_BEGIN_REAL);
+ return FormatNoCommaNumber(buff, BASE_YEAR + ymd.year);
}
static char *FormatTinyDate(char *buff, uint16 number)
@@ -360,7 +360,7 @@ static char *FormatTinyDate(char *buff, uint16 number)
YearMonthDay ymd;
ConvertDayToYMD(&ymd, number);
- buff += sprintf(buff, " %02i-%02i-%04i", ymd.day, ymd.month + 1, ymd.year + MAX_YEAR_BEGIN_REAL);
+ buff += sprintf(buff, " %02i-%02i-%04i", ymd.day, ymd.month + 1, BASE_YEAR + ymd.year);
return buff;
}