Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG][Form] Timezone php #9403

Copy link
Copy link
Closed
Closed
Copy link
@Tobur

Description

@Tobur
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.