Commit
- Loading branch information
There are no files selected for viewing
4 comments
on commit 252267c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dereuromark I just tested the solution with post data from a form and it does not work because the value of hour comes in as a string i.e.
$value['hour'] = '12'
suggest
if ((int)$value['hour'] === 12) {
$value['hour'] = 0;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Casting might also make 12abc
pass, so maybe we should better use
if ($value['hour'] == 12) {}
A non-strict check
Can you make a test case and provide the fix as PR maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this isn't fixed yet? I found a similar issue in saving data, where "12" "15" "am" is saved as 12:15:00, not 00:15:00. Maybe all uses of "meridian" should be double-checked for such problems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zuluru How can someone reproduce the issue you're having? If you have a way to reproduce the issue a new issue would be great.
should work with both form post data (string) and int values passed