FIX: TTOD() Returns Incorrect Date with Time of 12:00:00 AM (139835)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q139835 SYMPTOMS
When you use TTOD() on a variable containing a time of 12:00:00 AM, TTOD()
returns an incorrect date. If one second is added to the date value, TTOD()
returns the correct date.
CAUSE
12 AM is considered to be the start of a new day, so at 12 AM, TTOD()
should display the date for the next day. However, TTOD() miscalculates and
incorrectly displays the date for the previous day.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual FoxPro 5.0 for Windows.
Modification Type: | Major | Last Reviewed: | 3/24/2000 |
---|
Keywords: | kbbug kbvfp500fix KB139835 |
---|
|