VirtualBox

Changeset 38734 in vbox


Ignore:
Timestamp:
Sep 13, 2011 1:21:21 PM (13 years ago)
Author:
vboxsync
Message:

s3.cpp: Use C local date names and IPRT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/s3.cpp

    r38730 r38734  
    126126{
    127127    /* Date header entry */
    128 #if 0  /** @todo r=bird: Use RTTimeNow(), RTTimeExplode() and RTStrPrintf? */
    129128    RTTIMESPEC TimeSpec;
    130129    RTTIME Time;
     
    143142                 Time.u8Minute,
    144143                 Time.u8Second);
    145 #else
    146     time_t tt = time(NULL);
    147     char* pszDate = (char*)RTMemAlloc(128);
    148     strftime(pszDate, 128, "Date: %a, %d %b %Y %H:%M:%S UTC", gmtime(&tt));
    149 #endif
    150144
    151145    return pszDate;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette