diff --git a/php/class-customize-snapshot-manager.php b/php/class-customize-snapshot-manager.php index b8463ff6..522321a6 100644 --- a/php/class-customize-snapshot-manager.php +++ b/php/class-customize-snapshot-manager.php @@ -1129,7 +1129,7 @@ public function handle_update_snapshot_request() { $publish_date = isset( $_POST['publish_date'] ) ? $_POST['publish_date'] : ''; if ( 'future' === $status ) { $publish_date_obj = new \DateTime( $publish_date ); - $current_date = new \DateTime(); + $current_date = new \DateTime( current_time( 'mysql' ) ); if ( empty( $publish_date ) || ! $publish_date_obj || $publish_date > $current_date ) { status_header( 400 ); wp_send_json_error( 'bad_schedule_time' );