Skip to content

Commit

Permalink
Fixes #17246: Date custom fields can't store dates pre-1970. - part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed May 2, 2014
1 parent 085986c commit 4d8aa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/custom_field_api.php
Expand Up @@ -1024,7 +1024,7 @@ function custom_field_validate( $p_field_id, $p_value ) {
case CUSTOM_FIELD_TYPE_DATE:
# gpc_get_cf for date returns the value from strtotime
# For 32 bit systems, supported range will be 13 Dec 1901 20:45:54 UTC to 19 Jan 2038 03:14:07 UTC
$t_valid &= ( $p_value == null ) || ( $p_value !== false );
$t_valid &= $p_value !== false;
break;
case CUSTOM_FIELD_TYPE_CHECKBOX:
case CUSTOM_FIELD_TYPE_MULTILIST:
Expand Down

0 comments on commit 4d8aa43

Please sign in to comment.