From 6fa0564790486a75c4fb5e9f81c6f6de469c73a8 Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Mon, 2 Jan 2012 12:07:03 +0000
Subject: [PATCH] According to http://wweicht.homepage.t-online.de/projekte.htm
("GEOS 64/128 (Wheels and MegaPatch also) use internal a two digit value for
year. After the year 99 comes the year 00.") it's advisable to generally
limit the year to two digits.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5364 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
src/grc65/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/grc65/main.c b/src/grc65/main.c
index 2bbdc0352..0e7c72ad8 100644
--- a/src/grc65/main.c
+++ b/src/grc65/main.c
@@ -462,7 +462,7 @@ static void DoHeader (void)
t = time (NULL);
my_tm = localtime (&t);
- myHead.year = my_tm->tm_year;
+ myHead.year = my_tm->tm_year % 100;
myHead.month = my_tm->tm_mon + 1;
myHead.day = my_tm->tm_mday;
myHead.hour = my_tm->tm_hour;
@@ -568,8 +568,8 @@ static void DoHeader (void)
"\t.word %i << 9 | %i << 5 | %i, %i << 8 | %i\n"
"\t.word 0\n",
myHead.geostype,
- myHead.year % 100, myHead.month, myHead.day, myHead.hour, myHead.min,
- myHead.year % 100, myHead.month, myHead.day, myHead.hour, myHead.min);
+ myHead.year, myHead.month, myHead.day, myHead.hour, myHead.min,
+ myHead.year, myHead.month, myHead.day, myHead.hour, myHead.min);
} else {
--
2.39.5