Skip to content

Commit

Permalink
Revert "Convert custom date field value to timestamp"
Browse files Browse the repository at this point in the history
This reverts commit 6d22066.
  • Loading branch information
cproensa authored and dregad committed Apr 16, 2017
1 parent 34f6fc9 commit 4dc6c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/filter_api.php
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 4dc6c1b

Please sign in to comment.