Voyager: Updating post throughs `updated_at` invalid date error.

Created on 12 Jan 2017  路  5Comments  路  Source: the-control-group/voyager

Laravel Version: 5.3.28
Voyager Version: "^0.10.7"
PHP Version: 7.0
Database Driver & Version: 15.1 Distrib 10.1.20-MariaDB

Description:

SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '1970-01-01 00:00:00' for column 'updated_at' at row 1 (SQL: update `posts` set `author_id` = 1, `category_id` = 1, `seo_title` = , `excerpt` = This is the excerpt for the sample Post , `body` = <p>This is the body for the sample post, which includes the body.</p>
<h2>We can use all kinds of format!</h2>
<p>And include a bunch of other stuff.</p>, `meta_description` = Meta Description for sample post , `meta_keywords` = keyword1, keyword2, keyword3 , `updated_at` = 1970-01-01 00:00:00 where `id` = 2)

tried updating the BREAD visibility, but error still occurs.

Steps To Reproduce:

  • Open a Post
  • Save it.
  • Throws error.
possible bug

Most helpful comment

I meant this. Sorry, I should have been more clear.

visibility

All 5 comments

@vpakg which BREAD visibility are you talking about?

I meant this. Sorry, I should have been more clear.

visibility

Try to use last version of Voyager to see if this fixed.

Seems to be fixed. Thanks!

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings