FS#4806 - wrong filedate when writing

Attached to Project: Rockbox
Opened by Matthias Mohr (aka Massa) (mmohr) - Thursday, 09 March 2006, 01:33 GMT
Task Type Bugs
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System Iriver H300 series
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


After connecting my iRiver H340 to my computer I noticed,
that all files (e.g. configuration) written by rockbox
have create/modified timestamps far in the future.

The day and month seems to be correct, but the year is not.
My date and time is correctly set and it also write the
correct date inside e.g. a configuration file at the first

The years of the files are all 29 years in future
(e.g. for a file written today at 2006/03/09 it writes
down 2035/03/09)

Really strange :-)

This task depends upon

Closed by  Matthias Mohr (aka Massa) (mmohr)
Thursday, 09 March 2006, 11:23 GMT
Reason for closing:  Invalid
Additional comments about closing:  Not rockbox\' fault - bug exists in original h300 firmware
Comment by Linus Nielsen Feltzing (linusnielsen) - Thursday, 09 March 2006, 08:29 GMT
This is because of a bug in the iriver original firmware RTC driver. It uses the Year field in the wrong way, and it resets the RTC when it thinks it is invalid. Each time you start the iriver firmware, even just to charge it, the year will be set like this.
Comment by Matthias Mohr (aka Massa) (mmohr) - Thursday, 09 March 2006, 11:22 GMT
You're right - it seems my year was really wrong :(
(I thought I checked it before posting, but I must be wrong)

BTW, I did not boot the original firmware for eons, so I don't know how this happened???

I'll close the task - although it would be nice if rockbox
would automatically correct such wrong years...