Article ID: 176481
Article Last Modified on 3/10/2005
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
- Microsoft FoxPro 2.6 Standard Edition
- Microsoft FoxPro 2.6a Standard Edition
- Microsoft FoxPro 2.6 for MS-DOS
- Microsoft FoxPro 2.6a Standard Edition
- Microsoft Visual FoxPro 3.0b for Macintosh
- Microsoft FoxPro 2.6 for SCO/UNIX
- Microsoft FoxBASE+ 2.5 for MS-DOS
- Microsoft FoxBASE+ 2.01 for Macintosh
- Microsoft FoxPro 2.6a Professional Edition for Macintosh
This article was previously published under Q176481
SYMPTOMS
When you use SET CENTURY ON with a computer that has the system date set to
the year 2000 and a modification is made to the structure of a table (.dbf)
file, or a copy of the table file is made, the LUPDATE() function
incorrectly displays the century as 1900.
CAUSE
The date of the last update is stored in the header of the .dbf file. The
LUPDATE() function reads the date of last update from the header of the
.dbf file. This problem is caused by the manner in which FoxPro writes the
date into the table's file header.
RESOLUTION
Use one of the following workarounds:
NOTE: Because FoxBase does not support either the FDATE() or ADIR()
function, these workarounds do not apply to FoxBase.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual FoxPro6.0.
Additional query words: Y2K
Keywords: kbbug kbfix KB176481