moment-timezone
moment-timezone copied to clipboard
Legacy Timezones?
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,
]),
]),
]));```
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?
I've run into this issue as well and am wondering if I'm doing something wrong?