bump up parser version from v1 to v2
commit21ee3f8e3fe2eb274f575c3817d6a95b823fe378
authorPatrick Liu <patrickliu@fb.com>
Sat, 9 Jan 2021 00:34:41 +0000 (8 16:34 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 9 Jan 2021 00:36:25 +0000 (8 16:36 -0800)
treecc80ba15d2514977643737573abd7b30a411a2da
parent8c5492d8f1f2d59959241d6953c4a0f369ffcb46
bump up parser version from v1 to v2

Summary:
Only bump up parser version from v1 to v2. No change on tzdata and we still use 2020a tzdata. parser version change of timelib was done in D25191333

Let us roll out timelib update in 3 phases:

phase 1: coordinate with www to run some test for D25338654. The diff it does not include all the changes to make timelib up to date with the github source repo. It only includes the minimal changes required to change parser version from v1 to v2. After www tests pass, we can land D25338654.

phase 2: Make timelib entirely up to date with the source repo. The diff is D25352772.

phase 3: update the tzdata.

Why we have phase 1?
-> Phase 2 is still not completed and phase 1 is done. We can check in phase 1 first. This allows us to use any new tzdata releases from IANA directly. And in the meantime, we can develop phase 2.

If we do not have phase 1, phase 2 is blocker for phase 3:
phase 2 -> phase 3

Now we have phase 1, phase 2 is not a blocker:
phase 1 -> phase 3

Implementation work in phase 1 has been completed. I have tested it using admon, adEventJoiner, adFinder canaries, and HACK unit tests.
phase 2 requires longer period for development. Without phase 1, we cannot use the newly released tzdata from IANA until phase 2 is done.

Reviewed By: jaimedp

Differential Revision: D25338654

fbshipit-source-id: c8609f69afbf117177ec65eaf43ef987939091c9
hphp/runtime/base/timezone.cpp
hphp/test/zend/good/ext/date/tests/bug74652.php [new file with mode: 0644]
hphp/test/zend/good/ext/date/tests/bug74652.php.expectf [new file with mode: 0644]
hphp/test/zend/good/ext/date/tests/date_sunrise_variation9.php.expectregex
hphp/test/zend/good/ext/date/tests/date_sunset_variation9.php.expectregex