moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

Legacy Timezones?

Open thecoconutstudio opened this issue 6 years ago • 2 comments

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,
            ]),
        ]),
    ]));```

thecoconutstudio avatar Oct 25 '18 14:10 thecoconutstudio

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?

archansel avatar Oct 10 '19 10:10 archansel

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

trevorgehman avatar Jul 15 '20 15:07 trevorgehman