Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp not unable to edit #340

Open
hassansaqib opened this issue Mar 29, 2016 · 0 comments
Open

Timestamp not unable to edit #340

hassansaqib opened this issue Mar 29, 2016 · 0 comments

Comments

@hassansaqib
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant