Changeset 2627 in vbox for trunk/src/VBox
- Timestamp:
- May 14, 2007 2:20:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r2626 r2627 710 710 memset(&Tm, 0, sizeof(Tm)); 711 711 Tm.tm_year = Time.i32Year - 1900; 712 Tm.tm_mon = Time.u8Month ;712 Tm.tm_mon = Time.u8Month - 1; 713 713 Tm.tm_mday = Time.u8MonthDay; 714 Tm.tm_wday = Time.u8WeekDay;715 Tm.tm_yday = Time.u16YearDay ;714 Tm.tm_wday = (Time.u8WeekDay - 1 + 7) % 7; /* 0 = monday -> sunday */ 715 Tm.tm_yday = Time.u16YearDay - 1; 716 716 Tm.tm_hour = Time.u8Hour; 717 717 Tm.tm_min = Time.u8Minute;
Note:
See TracChangeset
for help on using the changeset viewer.