VirtualBox

Changeset 72161 in vbox for trunk/src


Ignore:
Timestamp:
May 8, 2018 11:59:43 AM (7 years ago)
Author:
vboxsync
Message:

IPRT: Win32 FileTimeToSystemTime works with milliseconds, need to keep that in mind when exploding local time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/time2-win.cpp

    r72142 r72161  
    7878                    {
    7979                        pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL;
    80                         pTime->offUTC = (RTTimeSpecGetNano(&LocalTime) - RTTimeSpecGetNano(pTimeSpec)) / RT_NS_1MIN;
     80                        pTime->offUTC = (RTTimeSpecGetMilli(&LocalTime) - RTTimeSpecGetMilli(pTimeSpec)) / RT_MS_1MIN;
     81                        pTime->u32Nanosecond += RTTimeSpecGetNano(pTimeSpec) % RT_NS_1MS;
    8182                    }
    8283                    return pTime;
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