We think there is a bug in the code, that prevents date update after submitting an article from dek-net to wordpress:
if ( ! empty( $post_date_gmt )
&& ‘0000-00-00 00:00:00’ !== $post->postdate_gmt
&& ‘1970-01-01 00:00:00’ !== $post->postdate_gmt) {
$date = $post ->post_date_gmt;
} elseif ( ‘draft’ === $post->post_status ) {
$date = get_the_date ( format: ‘Y-m-d H:i:s’, $post );$post_date_gmt
is not set and after article refresh the status ist not ‘draft’ anymore. So, there is no update for articles date.
I would be a great help, if this could be fixed.
Thank you.
When updating a post with no date the default date is created with 23:59. So far so good.
But then you try to calculate the GMT offset by using the ‘gmt_offset’ option. This MUST not be defined but you can have the ‘timezone_string’ defined that also has information about the GMT offset.
]]>