AmarGhugare opened a new pull request, #1874: URL: https://github.com/apache/commons-lang/pull/1874
Fixes [LANG-1730](https://issues.apache.org/jira/browse/LANG-1730). `FastDateParser` skips the GMT timezone-data row and currently recognizes bare `GMT` only when another timezone provides it as a display-name alias. When that alias is absent, valid dates such as `Mon, 01 May 2023 08:52:19 GMT` fail to parse, as reported on Android. Add GMT to the existing timezone-name alternatives so recognition does not depend on platform aliases. This uses the existing GMT handling and offset parsing, with no public API changes. Regression coverage removes the GMT aliases and checks both timezone strategies, mixed-case GMT, a nonzero parse position, and the resulting zero offset. Public parser tests check the exact UTC instant and full input consumption across timezone patterns. Validation: `mvn -B -ntp` passed on JDK 25.0.4.1: 119,336 tests, zero failures/errors, 18 skipped, plus coverage, license, Checkstyle, binary compatibility, SpotBugs, PMD, and Javadoc checks. All six missing-alias cases fail without the production fix. The platform-data condition is simulated deterministically; this was not run on an Android emulator. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
