google-code-export / webical

Automatically exported from code.google.com/p/webical
GNU General Public License v3.0
1 stars 1 forks source link

Calculation first day of period view fails #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When switch of daylight saving time coincides with first day of period view the 
first day is not calculated right.

What steps will reproduce the problem?
1. In 2013 daylight saving time starts at 31 March
2. Open a period view (month, week)
3. 31/3/2013 is shown as a Monday instead of a Sunday

Original issue reported on code.google.com by hz0885 on 10 May 2013 at 8:57

GoogleCodeExporter commented 9 years ago
Use GregorianCalendar set DAY_OF_WEEK instead of doing a milliseconds 
calculation

Original comment by hz0885 on 10 May 2013 at 9:03