FIX: STRFTIME Returns the Wrong Strings (320742)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Editions 6.0
  • the operating system: Microsoft Windows XP
  • the operating system: Microsoft Windows 2000 SP1
  • the operating system: Microsoft Windows 2000 SP2
  • the operating system: Microsoft Windows 2000 SP3

This article was previously published under Q320742

SYMPTOMS

STRFTIME returns the wrong strings for locales, for which the time display format string is hh:mm:ss tt. The time string is output as 04:30:45 p, instead of 04:30:45 p.m.

This problem occurs for Spanish and Mexican locales.

The following code returns the time display format string for a specific locale:
GetLocaleInfo(..., LOCALE_STIMEFORMAT, ...)

RESOLUTION

Service Pack Information

To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Visual Studio 6.0 service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The dates and times for the following hotfix files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Visual C++

The Visual C++ 6.0 English version of this fix has the file attributes (or later) that are listed in the following table:
   Date         Time   Version     Size       File name
   ------------------------------------------------------
   25-Apr-2002  14:30              2,635,054  Libc.lib
   25-Apr-2002  14:21              2,604,466  Libcd.lib
   25-Apr-2002  14:33              3,229,004  Libcmt.lib
   25-Apr-2002  14:24              3,218,140  Libcmtd.lib
   25-Apr-2002  15:24  6.0.9552.0    278,581  Msvcrt.dll
   25-Apr-2002  14:27  6.0.9552.0    434,252  Msvcrtd.dll

Windows 2000

The Windows 2000 English version of this fix has the file attributes (or later) that are listed in the following table:
   Date         Time   Version     Size     File name
   ---------------------------------------------------
   19-Jun-2002  12:34  6.1.9604.0  290,869  Msvcrt.dll

Windows XP

The Windows XP English version of this fix has the file attributes (or later) that are listed in the following table:
   Date         Time   Version      Size     File name
   ----------------------------------------------------
   16-Jul-2002  16:39  7.0.2600.49  323,072  Msvcrt.dll

STATUS

Microsoft has confirmed that this is a problem in Microsoft Windows 2000. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.

Modification Type:MinorLast Reviewed:10/11/2005
Keywords:kbHotfixServer kbQFE kbAppCompatibility kbWin2kSP4fix kbbug kbfix kbOSWin2000fix kbWinXPsp1fix KB320742