Skip to content

Commit

Permalink
2.1.6 post date gmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBrubaker committed Jan 25, 2016
1 parent 061d8eb commit ed8f497
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions automatic-post-publishing-scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Publish Scheduler
Plugin URI: http://www.willthewebmechanic.com
Description: Replaces default publishing with queued publishing.
Version: 2.1.5
Version: 2.1.6
Author: Will Brubaker
Author URI: http://www.willthewebmechanic.com
License: GPL 3.0+
Expand Down Expand Up @@ -34,7 +34,7 @@ class Publish_Scheduler

static private $wwm_plugin_values = array(
'name' => 'PublishScheduler',
'version' => '2.1.5',
'version' => '2.1.6',
'slug' => 'PublishScheduler',
'dbversion' => '1.5',//db version 1.1 was introduced in version 2.0, 1.2 in 2.1, 1.3 in 2.2, 1.4 in 2.3
'supplementary' => array(
Expand Down Expand Up @@ -431,7 +431,7 @@ public function queue_post( $data, $postarr )
//force 'seconds' to zero
if ( isset( $data['post_date'] ) ) {
$post_date = date_i18n( 'Y-m-d H:i', strtotime( $data['post_date'] ) );
$post_date_gmt = gmdate( 'Y-m-d H:i', strtotime( $data['post_date'] ) );
$post_date_gmt = date_i18n( 'Y-m-d H:i', strtotime( $data['post_date_gmt'] ) );
}
$post_date_ts = strtotime( $post_date );
$post_date_gmt_ts = strtotime( $post_date_gmt );
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**License:** GPLv3.0+
**Requires at least:** 3.6
**Tested up to:** 4.4.1
**Stable tag:** 2.1.5
**Stable tag:** 2.1.6
**Tags:** posts, publishing, scheduling, admin, author, automatic, blog, free, plugin
**Donate Link:** http://www.willthewebmechanic.com/automatic-post-publishing-scheduler/

Expand Down Expand Up @@ -82,6 +82,9 @@ This plugin allows you to gain very precise control over when posts are publishe

## Changelog ##

### v2.1.6 ###
1. Second attempt at getting post_date_gmt right

### v2.1.5 ###
1. Better handling of WordPress timezone settings

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: WilltheWebMechanic
License: GPLv3.0+
Requires at least: 3.6
Tested up to: 4.4.1
Stable tag: 2.1.5
Stable tag: 2.1.6
Tags: posts, publishing, scheduling, admin, author, automatic, blog, free, plugin
Donate Link: http://www.willthewebmechanic.com/automatic-post-publishing-scheduler/

Expand Down Expand Up @@ -69,6 +69,9 @@ This plugin allows you to gain very precise control over when posts are publishe

== Changelog ==

= v2.1.6 =
1. Second attempt at getting post_date_gmt right

= v2.1.5 =
1. Better handling of WordPress timezone settings

Expand Down

0 comments on commit ed8f497

Please sign in to comment.