TickTackk Well-known member Jan 10, 2021 #1 Affected version 2.2.2 PHP: $startTime = $this->filter('start_time', '?datetime'); ^ That will return 0 even if the start_time does not exist the in the request.
PHP: $startTime = $this->filter('start_time', '?datetime'); ^ That will return 0 even if the start_time does not exist the in the request.
Chris D XenForo developer Staff member Jan 10, 2021 #2 Would you mind checking again? I can't reproduce the issue. I get null if the start_time value is not included in the request. This isn't something that is filter type specific so it should (and does in my testing) work on any type, including datetime.
Would you mind checking again? I can't reproduce the issue. I get null if the start_time value is not included in the request. This isn't something that is filter type specific so it should (and does in my testing) work on any type, including datetime.
TickTackk Well-known member Jan 10, 2021 #3 Sorry, just checked again. I missed to dump $_POST to check if the start_time actually exists in the request.
Sorry, just checked again. I missed to dump $_POST to check if the start_time actually exists in the request.