Entering an invalid post timestamp will be tolerated and results in bad view links
|Reported by:||erikwasser||Owned by:||anonymous|
1) Goto you your blog and create a new post.
2) Enter a subject and some blog text (doesn't really matter)
3) Enter an invalid date like 2007-04-31 and save the post as unpublished article.
The error is:
a) No error message for the invalid date. It will be just saved.
b) If you view the article the link looks like this: http://www.foo.invalid/2007/05/01/bug/
This is the wrong date. And the view link will result (even as admin with the right so see unpublished articles) in a 404.
c) The database data is screwed too:
Here are the important 3 fields:
post_date 2007-04-31 17:09:36
Non existing data. But this could be a mysql bug.
post_date_gmt = 2007-05-01 16:09:36
And wrong link for the article.