Re: [PATCH] powerpc: Remove broken GregorianDay()

2015-12-15 Thread Alexandre Belloni
On 15/12/2015 at 18:09:14 +1100, Daniel Axtens wrote : > GregorianDay() is supposed to calculate the day of the week > (tm->tm_wday) for a given day/month/year. In that calcuation it > indexed into an array called MonthOffset using tm->tm_mon-1. However > tm_mon is zero-based, not one-based, so thi

[PATCH] powerpc: Remove broken GregorianDay()

2015-12-14 Thread Daniel Axtens
GregorianDay() is supposed to calculate the day of the week (tm->tm_wday) for a given day/month/year. In that calcuation it indexed into an array called MonthOffset using tm->tm_mon-1. However tm_mon is zero-based, not one-based, so this is off-by-one. It also means that every January, GregoiranDay