VirtualBox

Changeset 72163 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 8, 2018 12:52:17 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: s/LocalUTCOffset/cNsUtcOffset/

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTTimeLocalExplode-generic.cpp

    r72140 r72163  
    3636{
    3737    RTTIMESPEC LocalTime = *pTimeSpec;
    38     int64_t LocalUTCOffset = RTTimeLocalDeltaNano(); /**< @todo this is obviously wrong. Need RTTimeLocalDeltaNanoFor(pTimeSpec); */
    39     RTTimeSpecAddNano(&LocalTime, LocalUTCOffset);
     38    int64_t cNsUtcOffset = RTTimeLocalDeltaNano(); /**< @todo this is obviously wrong. Need RTTimeLocalDeltaNanoFor(pTimeSpec); */
     39    RTTimeSpecAddNano(&LocalTime, cNsUtcOffset);
    4040    pTime = RTTimeExplode(pTime, &LocalTime);
    4141    if (pTime)
    4242    {
    4343        pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL;
    44         pTime->offUTC = LocalUTCOffset / RT_NS_1MIN;
     44        pTime->offUTC = cNsUtcOffset / RT_NS_1MIN;
    4545    }
    4646    return pTime;
  • trunk/src/VBox/Runtime/r3/posix/timelocal-posix.cpp

    r72140 r72163  
    174174{
    175175    RTTIMESPEC LocalTime = *pTimeSpec;
    176     int64_t LocalUTCOffset = rtTimeLocalUTCOffset(&LocalTime, true /* current time, skip fallback */);
    177     RTTimeSpecAddNano(&LocalTime, LocalUTCOffset);
     176    int64_t cNsUtcOffset = rtTimeLocalUTCOffset(&LocalTime, true /* current time, skip fallback */);
     177    RTTimeSpecAddNano(&LocalTime, cNsUtcOffset);
    178178    pTime = RTTimeExplode(pTime, &LocalTime);
    179179    if (pTime)
    180180    {
    181181        pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL;
    182         pTime->offUTC = LocalUTCOffset / RT_NS_1MIN;
     182        pTime->offUTC = cNsUtcOffset / RT_NS_1MIN;
    183183    }
    184184    return pTime;
  • trunk/src/VBox/Runtime/r3/win/time2-win.cpp

    r72162 r72163  
    9696     */
    9797    LocalTime = *pTimeSpec;
    98     int64_t LocalUTCOffset = RTTimeLocalDeltaNano();
    99     RTTimeSpecAddNano(&LocalTime, LocalUTCOffset);
     98    int64_t cNsUtcOffset = RTTimeLocalDeltaNano();
     99    RTTimeSpecAddNano(&LocalTime, cNsUtcOffset);
    100100    pTime = RTTimeExplode(pTime, &LocalTime);
    101101    if (pTime)
    102102    {
    103103        pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL;
    104         pTime->offUTC = LocalUTCOffset / RT_NS_1MIN;
     104        pTime->offUTC = cNsUtcOffset / RT_NS_1MIN;
    105105    }
    106106    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