a Y2K fix

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@869 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-06-14 01:33:13 +00:00
parent a2f61e6e87
commit 82fe8e3c74

View File

@ -408,6 +408,10 @@ xaccParseQIFDate (char * str)
*tok = 0x0;
dat.tm_year = atoi (str);
/* a quickie Y2K fix: assume two digit dates with
* a value less than 50 are in the 21st century. */
if (50 > dat.tm_year) dat.tm_year += 100;
dat.tm_sec = 0;
dat.tm_min = 0;
dat.tm_hour = 11;