summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php')
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php
index 529df405..7094ffaf 100644
--- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php
+++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php
@@ -277,11 +277,11 @@ class WPCOM_JSON_API_List_Posts_v1_1_Endpoint extends WPCOM_JSON_API_Post_v1_1_E
}
}
- if ( isset( $args['before'] ) ) {
- $this->date_range['before'] = $args['before'];
+ if ( isset( $args['before_gmt'] ) ) {
+ $this->date_range['before'] = $args['before_gmt'];
}
- if ( isset( $args['after'] ) ) {
- $this->date_range['after'] = $args['after'];
+ if ( isset( $args['after_gmt'] ) ) {
+ $this->date_range['after'] = $args['after_gmt'];
}
if ( isset( $args['modified_before_gmt'] ) ) {
@@ -439,7 +439,7 @@ class WPCOM_JSON_API_List_Posts_v1_1_Endpoint extends WPCOM_JSON_API_Post_v1_1_E
}
function handle_date_range( $where ) {
- return $this->_build_date_range_query( 'post_date', $this->date_range, $where );
+ return $this->_build_date_range_query( 'post_date_gmt', $this->date_range, $where );
}
function handle_modified_range( $where ) {