Blog post_date format error
When creating a new blog post, the post_date date format appears to be wrong somewhere in the JavaScript / jQuery as dd-mm-yyyy gets parsed as mm-dd-yyyy.
Therefore Sunday 13th October is getting parsed as 10-13-2013 instead of 13-10-2013 which results in 1970-01-01 01:00:00
I'm assuming it's the JS, because adding:
die( '$_POST<pre>' . print_r( $_POST, TRUE ) . '</pre>' );
...to the start of the on_before_save method in blog_posts_model gives the same date.
Any ideas?
Comments
https://github.com/daylightstudio/FUEL-CMS-Blog-Module
Also, to be clear, you are wanting your date picker to have the date format of "dd-mm-yyyy" correct?
http://www.php.net/manual/en/function.strtotime.php
$config['date_format'] = 'd/m/Y'; -> $config['date_format'] = 'd-m-Y';