Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error when editing files: Uploaded 38 years ago

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

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

Page: 1
Go to End
Author Topic: 2309 Views
  • Blynx
    Avatar
    Community Member
    20 Posts

    Error when editing files: Uploaded 38 years ago Link to this post

    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

  • morethanfire
    Avatar
    Community Member
    13 Posts

    Re: Error when editing files: Uploaded 38 years ago Link to this post

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

  • Blynx
    Avatar
    Community Member
    20 Posts

    Re: Error when editing files: Uploaded 38 years ago Link to this post

    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.

  • morethanfire
    Avatar
    Community Member
    13 Posts

    Re: Error when editing files: Uploaded 38 years ago Link to this post

    thanks for the update.

  • spark
    Avatar
    Community Member
    15 Posts

    Re: Error when editing files: Uploaded 38 years ago Link to this post

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

  • Blynx
    Avatar
    Community Member
    20 Posts

    Re: Error when editing files: Uploaded 38 years ago Link to this post

    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.

    2309 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.