mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
a2f61e6e87
commit
82fe8e3c74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user