VirtualBox

Changeset 36168 in vbox


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

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r36165 r36168  
    61366136
    61376137    strStateFilePath += RTPATH_DELIMITER;
    6138     strStateFilePath += Utf8StrFmt("%04ld-%02u-%02uT%02u-%02u-%02u-%09uZ.sav",
    6139                                    time.i32Year,
    6140                                    time.u8Month,
    6141                                    time.u8MonthDay,
    6142                                    time.u8Hour,
    6143                                    time.u8Minute,
    6144                                    time.u8Second,
    6145                                    time.u32Nanosecond);
     6138    strStateFilePath += Utf8StrFmt("%04d-%02u-%02uT%02u-%02u-%02u-%09uZ.sav",
     6139                                   time.i32Year, time.u8Month, time.u8MonthDay,
     6140                                   time.u8Hour, time.u8Minute, time.u8Second, time.u32Nanosecond);
    61466141}
    61476142
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r35743 r36168  
    597597        RTTimeExplode(&t, &ts);
    598598
    599         com::Utf8StrFmt strPrefix("%04d-%02d-%02d %02d:%02d:%02d %s",
     599        com::Utf8StrFmt strPrefix("%04d-%02u-%02u %02u:%02u:%02u %s",
    600600                                  t.i32Year, t.u8Month, t.u8MonthDay,
    601601                                  t.u8Hour, t.u8Minute, t.u8Second,
  • 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.

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