#2439 closed defect (bug) (fixed)
Can't Publish pages; get saved with future post_status
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.0.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Using 2.0.1-alpha1 (revision 3523) and any page I try to Publish gets marked with a post_status of 'future'.
I can save a page as either private or draft status and then change them to any post_status but 'publish'. I can change a 'future' post to any other status but publish.
Change History (3)
Note: See
TracTickets for help on using
tickets.
I think there's something up with mysql2date('U', ...).
This code:
echo "Post Date: " . $post->post_date . "<br />"; echo "Post Date GMT: " . $post->post_date_gmt . "<br />"; echo "Post Date Timestamp: " . mysql2date('U', $post->post_date) . "<br />"; echo "Post Date GMT Timestamp: " . mysql2date('U', $post->post_date_gmt) . "<br />"; echo "Current Time: " . current_time('mysql') . "<br />"; echo "Current Time GMT: " . current_time('mysql', 1) . "<br />"; echo "Current Timestamp: " . current_time('timestamp') . "<br />"; echo "Current Timestamp GMT: " . current_time('timestamp', 1) . "<br />";Produces this output:
Notice that "Current Timestamp GMT" is less than "Post Date GMT Timestamp". That's the problem.