Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Error when editing files: Uploaded 38 years ago


Go to End


6 Posts   3262 Views

Avatar
Blynx

Community Member, 20 Posts

1 May 2008 at 6:27pm

When I edit a file in the CMS, the "File uploaded" value is always reset to a date 38 years ago. On my laptop (which has a local time zone west of GMT) it's the 31/12/1969, on my web server (located in a time zone east of GMT) it's the 01/01/1970. These are not only display differences, but appear this way in the respective database.
To reproduce this, it's enough to open the "Edit" dialog, then to click on "Save" in the "Main" tab.
Silverstripe version: 2.2.2rc3

Can anybody confirm this error?

Cheers, Blynx

Avatar
morethanfire

Community Member, 13 Posts

21 May 2008 at 4:00am

Did you ever find a fix for this? I am currently experiencing this.

Avatar
Blynx

Community Member, 20 Posts

21 May 2008 at 1:49pm

It's reported as a bug and currently in the list for the 2.2.3 milestone. Unfortunately I couldn't really find a fix for it, my current workaround is running the following query in the database after I changed anything with the file edit dialog:

UPDATE `File`SET `Created` = `LastEdited` WHERE `Created` < '1980-01-01 00:00:00';

It doesn't really fix the issue, but at least I get a date that makes more sense than the one 38 years ago.

Avatar
morethanfire

Community Member, 13 Posts

21 May 2008 at 4:53pm

thanks for the update.

Avatar
spark

Community Member, 15 Posts

26 August 2008 at 12:25pm

Edited: 26/08/2008 12:46pm

Any further updates on this? It wasn't happening on my site until recently.

Avatar
Blynx

Community Member, 20 Posts

26 August 2008 at 2:28pm

I fixed that error on my installation about 1 month ago, and also reported the fix at http://open.silverstripe.com/ticket/2495#comment:2. Unfortunately, it will still take quite a while until this will appear in any Silverstripe release.