Jump to:

3431 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Silverstripe 2.3.1 will only save Date Field as 1970-1-1

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

Page: 1
Go to End
Author Topic: 295 Views
  • drawde83
    Avatar
    Community Member
    1 Post

    Silverstripe 2.3.1 will only save Date Field as 1970-1-1 Link to this post

    When I save an DataObject with a Date field from a form it gets saved as 1970-1-1.

    It's a standard

    public static $db = array(
    'MyDate' => 'Date'
    );

    then

    $form->saveInto($obj);
    $obj->write();

    although both stages (saveinto,write) seem to change the value to 1970.
    I realise this is not much to go on so I guess I'm after suggestions for how to debug it.

    it's using the ecommerce and payment modules.

    295 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.