Closed
Description
If timezone setup incorrect on the server, we always get error on the datetime field about value is not valid. But real error it's error on the incorrect timezone setup.
It's exception catch on the file:
/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php
line 611.
try {
// Normalize data to unified representation
$normData = $this->viewToNorm($viewData);
// Hook to change content of the data into the normalized
// representation
if ($dispatcher->hasListeners(FormEvents::SUBMIT)) {
$event = new FormEvent($this, $normData);
$dispatcher->dispatch(FormEvents::SUBMIT, $event);
$normData = $event->getData();
}
// Synchronize representations - must not change the content!
$modelData = $this->normToModel($normData);
$viewData = $this->normToView($normData);
} catch (TransformationFailedException $e) {
$this->synchronized = false;
}
So we have exception and this exception don't write to log, don't show user, we can't see it, only go to code, go to this file and write some var_dump for $e.
Please do fix for this, because I write some code and my costumer setup this code on server, and it's work for me, and don't work for costumer. It's real pain.