tcranford
Member
I'm having an issue with dates in a custom form template that doesn't appear when using the standard bootstrap form template. The date field has a single "notempty" validation rule. When I enter a mm-dd-yyyy date (no time component) and select "Save" it throws the following error:
DateTime::__construct(): Failed to parse time string (05-14-1966) at position 0 (0): Unexpected character
I suspect that there is some javascript event that fires for the standard bootstrap form template that doesn't fire for my custom form template because when using the standard template and I hit the "Save" button I briefly see the format of the date string go to a yyyy-mm-dd H:i format. This behavior doesn't happen for the custom form template.
I need fresher eyes on this, mine are currently crossing...
TIA!
I'm running J! 3.7 and F 3.6. My sites profile has been updated as well with specifics on replicating the problem.
DateTime::__construct(): Failed to parse time string (05-14-1966) at position 0 (0): Unexpected character
I suspect that there is some javascript event that fires for the standard bootstrap form template that doesn't fire for my custom form template because when using the standard template and I hit the "Save" button I briefly see the format of the date string go to a yyyy-mm-dd H:i format. This behavior doesn't happen for the custom form template.
I need fresher eyes on this, mine are currently crossing...
TIA!
I'm running J! 3.7 and F 3.6. My sites profile has been updated as well with specifics on replicating the problem.