VirtualBox

Changeset 25127 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 1, 2009 1:17:23 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55506
Message:

DevRTC: Fixed incorrect weekday calculation (two days off).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r24265 r25127  
    809809    Tm.tm_mon  = Time.u8Month - 1;
    810810    Tm.tm_mday = Time.u8MonthDay;
    811     Tm.tm_wday = (Time.u8WeekDay - 1 + 7) % 7; /* 0 = monday -> sunday */
     811    Tm.tm_wday = (Time.u8WeekDay + 1 + 7) % 7; /* 0 = monday -> sunday */
    812812    Tm.tm_yday = Time.u16YearDay - 1;
    813813    Tm.tm_hour = Time.u8Hour;
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