From 4dc6c1b1eb6b1f89a69d48c6fb6d66461d6d412c Mon Sep 17 00:00:00 2001 From: Carlos Proensa Date: Wed, 12 Apr 2017 16:36:14 +0200 Subject: [PATCH] Revert "Convert custom date field value to timestamp" This reverts commit 6d2206657e33873d48c442acc440b8efcb862f6c. --- core/filter_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/filter_api.php b/core/filter_api.php index e06cb22b82..877adbf42f 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -3201,7 +3201,7 @@ function filter_gpc_get( array $p_filter = null ) { $t_start = $t_start_date; } else { $t_date = gpc_get_string( 'custom_field_' . $t_cfid . '_start_date', null ); - $t_start_date = strtotime( $t_date ); + $t_start_date = date( config_get( 'short_date_format' ), $t_date ); # calculate correct timestamps $t_start = 1; switch( $t_control ) { @@ -3234,7 +3234,7 @@ function filter_gpc_get( array $p_filter = null ) { $t_end = $t_end_date; } else { $t_date = gpc_get_string( 'custom_field_' . $t_cfid . '_end_date', null ); - $t_end_date = strtotime( $t_date ); + $t_end_date = date( config_get( 'short_date_format' ), $t_date ); # calculate correct timestamps $t_end = 1; switch( $t_control ) {