This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11814 - calendar.rock day of week is off-by-one
Attached to Project:
Rockbox
Opened by Timothy Stotts (timotheus) - Sunday, 19 December 2010, 07:33 GMT+2
Last edited by Bertrik Sikken (bertrik) - Thursday, 12 April 2012, 21:44 GMT+2
Opened by Timothy Stotts (timotheus) - Sunday, 19 December 2010, 07:33 GMT+2
Last edited by Bertrik Sikken (bertrik) - Thursday, 12 April 2012, 21:44 GMT+2
|
DetailsThe calendar.rock application displays the day of week for year 2010 off-by-one. On my player (iPod Video 30GB), the calendar application shows date 2010-12-19 as Monday when it is actually Sunday.
|
This task depends upon
Closed by Bertrik Sikken (bertrik)
Thursday, 12 April 2012, 21:44 GMT+2
Reason for closing: Fixed
Additional comments about closing: Should be fixed by 449dff4
Thursday, 12 April 2012, 21:44 GMT+2
Reason for closing: Fixed
Additional comments about closing: Should be fixed by 449dff4
Does this still happen when you update the time (e.g. change it back and forth by an hour)?
Except it's off by two days here.
The date is displayed correctly, just not the day.
[St.]
The ipod video, nano 1g (assuming Hayden was referring to the 1g ...), the color all use the pcf50605 rtc driver.
It's not entirely clear what rtc driver the nano2g uses ("RTC_NANO2G", great), but it seems to be a pcf5063x.
So indeed it seems there is some bug in the pcf506.. family of rtc drivers.
Does this still happen when you update the time (e.g. change it back and forth by an hour)?
1. Enable Daylight savings time on original firmware.
2. Reboot to Rockbox
3. Move clock back one hour since it is ahead one hour too much.
3. Go to Calendar and the dates days were displayed correctly. (e.g. Thursday the 13th)
It defiantly has some sort of correlation with the clock.
I tried your solution. My daylight savings time was off, so I turned it on, adjusted the clock, and now my clock is adjusted for that. However, I get the same calendar behavior as before: the day of the week is one day ahead of what it should be.
* the weekday is independently stored in the RTC chip of the PCF50605, so it is indeed possible to get a weekday that is off but have an otherwise correct date
* even if the weekday is off in the RTC, the time&date screen shows the correct weekday (because it is recalculated in this screen)
* when setting the time in the time&date screen, a corrected weekday is set in the RTC
So, changing the time&date should fix the weekday setting (even if you don't actually change the date). Has anyone tried that? (PLEASE DO!)
Perhaps the OF has a different idea about how the weekday should be coded.
Thanks!
I think this needs to be discussed with some other rockbox developers first (like the person who wrote the pcf50605 RTC driver).