VirtualBox

Changeset 52833 in vbox


Ignore:
Timestamp:
Sep 24, 2014 12:44:08 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96243
Message:

time.cpp: Used the wrong days-in-month for non-leap-years when calculating year-day in RTTimeNormalize and RTTimeLocalNormalize.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/time.cpp

    r48935 r52833  
    453453            unsigned cDaysInMonth = fLeapYear
    454454                                  ? g_acDaysInMonthsLeap[pTime->u8Month - 1]
    455                                   : g_acDaysInMonthsLeap[pTime->u8Month - 1];
     455                                  : g_acDaysInMonths[pTime->u8Month - 1];
    456456            if (pTime->u8MonthDay <= cDaysInMonth)
    457457                break;
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