From: ol.sc Date: Mon, 2 Jan 2012 12:07:03 +0000 (+0000) Subject: According to http://wweicht.homepage.t-online.de/projekte.htm ("GEOS 64/128 (Wheels... X-Git-Tag: V2.13.3~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fa0564790486a75c4fb5e9f81c6f6de469c73a8;p=cc65 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 --- 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 {