FS#7101 - Sansa: bugfix in rtc date/time calculation

Attached to Project: Rockbox
Opened by Toni (ahellmann) - Wednesday, 02 May 2007, 20:43 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch fixes the reported bug #7096 and bug #7097 in date/time calculation.
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Saturday, 05 May 2007, 08:55 GMT
Reason for closing:  Accepted
Comment by Gerritt Gonzales (GRaTT) - Thursday, 03 May 2007, 16:35 GMT
There are still date issues.
Still unable to set/display the 30 or 31 day on months with 31 days.
I think there might be a read issue.
I have been setting the date in the OF
and then seeing if RB could read it.
RB was reading incorrectly when the day was 30, before this patch.
I am still testing now with this patch and some of my hacks.
Comment by Toni (ahellmann) - Thursday, 03 May 2007, 16:50 GMT
I just set 2007.May.31 and 2007.Jun.30 in RB and it is all ok.
So probably you used your own UI? If not, then please specify what you did.
Comment by Gerritt Gonzales (GRaTT) - Thursday, 03 May 2007, 17:15 GMT
This patch DOES fix the date problem.
This was my mistake. I patched an unclean file
with some of my attempts at fixing still in place.
In my defense it was late. I am sorry Toni.
I have tested very carefully now and all dates work.
The calendar is usefull now.