Changeset 72140 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- May 7, 2018 2:21:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/time2-win.cpp
r70345 r72140 76 76 pTime = RTTimeExplode(pTime, &LocalTime); 77 77 if (pTime) 78 { 78 79 pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL; 80 pTime->offUTC = (LocalTime - *pTimeSpec) / RT_NS_1MIN; 81 } 79 82 return pTime; 80 83 } … … 88 91 */ 89 92 LocalTime = *pTimeSpec; 90 RTTimeSpecAddNano(&LocalTime, RTTimeLocalDeltaNano()); 93 int64_t LocalUTCOffset = RTTimeLocalDeltaNano(); 94 RTTimeSpecAddNano(&LocalTime, LocalUTCOffset); 91 95 pTime = RTTimeExplode(pTime, &LocalTime); 92 96 if (pTime) 97 { 93 98 pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL; 99 pTime->offUTC = LocalUTCOffset / RT_NS_1MIN; 100 } 94 101 return pTime; 95 102 }
Note:
See TracChangeset
for help on using the changeset viewer.