sleeping-owl / admin

Administrative interface builder for Laravel
http://sleeping-owl.github.io/
MIT License
503 stars 260 forks source link

Timestamp not unable to edit #340

Open hassansaqib opened 8 years ago

hassansaqib commented 8 years ago

Hi, I am using timestamp. The field is correctly bound to the database as it shows the correct date from the db. But when I modify and save the time and date, no change occurs.

I have added following line in my model for dates. protected $dates = ['published_at', 'unpublished_at'];

and these two lines for rendering the fields

FormItem::timestamp('published_at', 'Publish at'); FormItem::timestamp('unpublished_at', 'Unpublish at');

In db, the type of published_at and unpublished_at is timestamp.

Can you guide me, why the fields are not modifying?