This reverts commit c86563c3ac.
This commit is contained in:
Moon 2020-12-07 16:01:22 -08:00 committed by GitHub
parent 16ef985c39
commit bc6ba4f3ac
1 changed files with 0 additions and 4 deletions

View File

@ -692,8 +692,6 @@ class DataStore extends SqlQuery {
$datetime_str = $query_args['before']->date( TimeInterval::$sql_datetime_format );
} else {
$datetime_str = $query_args['before']->format( TimeInterval::$sql_datetime_format );
$datetime_str = TimeInterval::convert_local_datetime_to_gmt( $datetime_str )
->format( TimeInterval::$sql_datetime_format );
}
if ( isset( $this->subquery ) ) {
$this->subquery->add_sql_clause( 'where_time', "AND {$table_name}.date_created <= '$datetime_str'" );
@ -707,8 +705,6 @@ class DataStore extends SqlQuery {
$datetime_str = $query_args['after']->date( TimeInterval::$sql_datetime_format );
} else {
$datetime_str = $query_args['after']->format( TimeInterval::$sql_datetime_format );
$datetime_str = TimeInterval::convert_local_datetime_to_gmt( $datetime_str )
->format( TimeInterval::$sql_datetime_format );
}
if ( isset( $this->subquery ) ) {
$this->subquery->add_sql_clause( 'where_time', "AND {$table_name}.date_created >= '$datetime_str'" );