tao-software / tao-schedule-update

Wordpress Plugin to Schedule Content Updates
https://wordpress.org/plugins/tao-schedule-update/
MIT License
16 stars 14 forks source link

Post date : GMT vs non GMT #4

Closed CheeseDurger closed 8 years ago

CheeseDurger commented 8 years ago

Hi, When a scheduled update is published, it seems that $post->post_date is updated but not $post->post_date_gmt. See tao-schedule-update.php - line 538 : $post->post_date = date_i18n( 'Y-m-d H:i:s' ); but no mention of post_date_gmt. However, the 2 values (gmt and non gmt) are 2 different fields in the database. The first one is called with : get_post_time($d, true); and the latter is called with : get_post_time($d, false);

This causes a misbehaviour everywhere post_date_gmt is used (in feeds for instance). Would it be possible to add the necessary line of code to fix it ?

Thanks