admin icon indicating copy to clipboard operation
admin copied to clipboard

Timestamp not unable to edit

Open hassansaqib opened this issue 9 years ago • 0 comments

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?

hassansaqib avatar Mar 29 '16 08:03 hassansaqib