Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy Timezones? #687

Open
thecoconutstudio opened this issue Oct 25, 2018 · 2 comments
Open

Legacy Timezones? #687

thecoconutstudio opened this issue Oct 25, 2018 · 2 comments

Comments

@thecoconutstudio
Copy link

In certain situations it seems Moment is returning Legacy Timezones for example, America/Buenos_Aires and not America/Argentina/Buenos_Aires, it there are way to correct this?

I understand there might be a way to enable to the support in PHP but I'm not sure how to work it out.

        'username' => new AppAssert\Chain([
            new Assert\Type('string'),
            new Assert\NotBlank(),
        ]),
        'password' => new AppAssert\Chain([
            new Assert\Type('string'),
            new Assert\NotBlank(),
        ]),
        'timezone' => new AppAssert\Chain([
            new Assert\Type('string'),
            new Assert\NotIdenticalTo(''),
            new Assert\Choice([
                'choices' => \DateTimeZone::listIdentifiers(),
                'strict' => true,
            ]),
        ]),
    ]));```
@archansel
Copy link

I encounter this problem too, our PHP server rejected timezone from moment.tz.names(), either do something with the server code or is there any way ini moment to not return legacy timezone?

@trevorgehman
Copy link

I've run into this issue as well and am wondering if I'm doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants