| @@ -52,10 +52,10 @@ | ||
| 52 | 52 | * @param mixed $value mixed The value of current value. |
| 53 | 53 | * @param mixed $condition_value The value of condition input. |
| 54 | 54 | */ |
| 55 | 55 | public function is_valid( $value, $condition_value ) { |
| 56 | - $start_date_time = strtotime( date( 'Y-m-d 00:00:00', $condition_value ) ); | |
| 57 | - $end_date_time = strtotime( date( 'Y-m-d 24:00:00', $condition_value ) ); | |
| 56 | + $start_date_time = strtotime( gmdate( 'Y-m-d 00:00:00', $condition_value ) ); | |
| 57 | + $end_date_time = strtotime( gmdate( 'Y-m-d 24:00:00', $condition_value ) ); | |
| 58 | 58 | |
| 59 | 59 | if ( $value > $start_date_time && $value < $end_date_time ) { |
| 60 | 60 | return true; |
| 61 | 61 | } |