VirtualBox

Changeset 36168 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Mar 4, 2011 12:41:50 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70359
Message:

Main: a few more time format fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r36110 r36168  
    452452        throw ConfigFileError(this, NULL, N_("Timespec %lld ms is invalid"), RTTimeSpecGetMilli(&stamp));
    453453
    454     return Utf8StrFmt("%04ld-%02hd-%02hdT%02hd:%02hd:%02hdZ",
    455                       time.i32Year,
    456                       (uint16_t)time.u8Month,
    457                       (uint16_t)time.u8MonthDay,
    458                       (uint16_t)time.u8Hour,
    459                       (uint16_t)time.u8Minute,
    460                       (uint16_t)time.u8Second);
     454    return Utf8StrFmt("%04u-%02u-%02uT%02u:%02u:%02uZ",
     455                      time.i32Year, time.u8Month, time.u8MonthDay,
     456                      time.u8Hour, time.u8Minute, time.u8Second);
    461457}
    462458
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