We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b679b commit 6606876Copy full SHA for 6606876
composer.json
@@ -2,7 +2,7 @@
2
"name": "freezaweb/validator",
3
"description": "POST/GET/CUSTOM array validator",
4
"license": "proprietary",
5
- "version": "1.1.16",
+ "version": "1.1.17",
6
"type": "library",
7
"authors": [
8
{
src/field_validate.php
@@ -307,10 +307,14 @@ public function time(){
307
308
$this->format_to_string = true;
309
310
- $format = 'H:i';
311
-
+ $format = 'H:i:s';
312
$this->dateformat = $format;
313
+ if(strlen($this->input) == 5){
314
+ $this->input.=':00';
315
+ }
316
+
317
318
$d = \DateTime::createFromFormat($format, $this->input);
319
320
if($d){
0 commit comments