mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-12 17:32:00 -05:00
y2k fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1782 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
1 parent
e9d451b3b8
commit
902df5fcb3
1 file changed
+1
-1
+1
-1
@@ -184,7 +184,7 @@ scanDate(const char *buff, int *day, int *month, int *year)
|
||||
/* if the year entered is smaller than 100, assume we mean the current
|
||||
century (and are not revising some roman emperor's books) */
|
||||
if(iyear<100) {
|
||||
iyear += ((int) ((now->tm_year+1900)/100)) * 100;
|
||||
iyear += ((int) ((now->tm_year+1950-iyear)/100)) * 100;
|
||||
}
|
||||
|
||||
if (year) *year=iyear;
|
||||
|
||||
Reference in new issue
Block a user