Ignore:
Timestamp:
Feb 21, 2002, 8:24:22 PM (23 years ago)
Author:
umoeller
Message:

misc. updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/nls.c

    r136 r142  
    2222
    2323/*
    24  *      Copyright (C) 1997-2001 Ulrich M”ller.
     24 *      Copyright (C) 1997-2002 Ulrich M”ller.
    2525 *      This file is part of the "XWorkplace helpers" source package.
    2626 *      This is free software; you can redistribute it and/or modify
     
    268268
    269269    nlsDateTime(pszBuf,
    270                  NULL,          // no time
    271                  &dt,
    272                  ulDateFormat,
    273                  cDateSep,
    274                  0, 0);         // no time
     270                NULL,          // no time
     271                &dt,
     272                ulDateFormat,
     273                cDateSep,
     274                0, 0);         // no time
    275275}
    276276
     
    326326 *@@added V0.9.0 (99-11-07) [umoeller]
    327327 *@@changed V0.9.16 (2001-12-05) [pr]: fixed AM/PM hour bug
     328 *@@changed V0.9.18 (2002-02-13) [umoeller]: fixed AM/PM hour bug fix
    328329 */
    329330
     
    387388            if (pDateTime->hours >= 12)  // V0.9.16 (2001-12-05) [pr] if (pDateTime->hours > 12)
    388389            {
     390                // yeah cool Paul, now we get 00:20 PM if it's 20 past noon
     391                // V0.9.18 (2002-02-13) [umoeller]
     392                ULONG ulHours;
     393                if (!(ulHours = pDateTime->hours % 12))
     394                    ulHours = 12;
     395
    389396                // >= 12h: PM.
    390397                PrfQueryProfileString(HINI_USER,
     
    395402                sprintf(pszTime, "%02d%c%02d%c%02d %s",
    396403                        // leave 12 == 12 (not 0)
    397                         pDateTime->hours % 12,
     404                        ulHours,
    398405                            cTimeSep,
    399406                        pDateTime->minutes,
Note: See TracChangeset for help on using the changeset viewer.