Rockbox

Tasklist

FS#9397 - calendar plugin shows incorrect calendars

Attached to Project: Rockbox
Opened by Frank Gevaerts (fg) - Friday, 12 September 2008, 19:42 GMT
Last edited by Nils Wallménius (nls) - Friday, 03 October 2008, 06:47 GMT
Task Type Bugs
Category Settings
Status Closed
Assigned To No-one
Operating System Archos Recorder
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The calendar plugin shows incorrect calendars on the simulator. The days are of by two, e.g. 12 september 2008 is shown as wednesday instead of friday, and the current day is off by one (today the 12th it shows the 13th)

It works correctly on target
This task depends upon

Closed by  Nils Wallménius (nls)
Friday, 03 October 2008, 06:47 GMT
Reason for closing:  Fixed
Comment by Thomas Schott (scotty) - Sunday, 14 September 2008, 07:27 GMT
These values are hardcoded for the simulator (for any reason?) in calendar.c:

94: #ifdef SIMULATOR
95: today->wday = 3;
96: today->mday = 13;
97: #endif

Just removing these lines should fix it.

Loading...