PT-FIXES: DOS-1290 DateParser in java #4559
Merged
Nauna merged 19 commits intodevelopmentfrom Jan 20, 2026
Merged
Conversation
…me parsing - Updated DateUtil.js to replace legacy date parsing logic with DateParser for improved accuracy and maintainability. - Modified tests in DateUtilJSTest.js and DateUtilTest.js to reflect changes in date parsing behavior, ensuring exceptions are thrown for unsupported formats. - Adjusted test cases to validate normalization of invalid dates instead of throwing exceptions. - Added DateParserJavaTest to the test suite for comprehensive coverage of date parsing functionality. - Updated pom.js to include DateParser and DateParserJavaTest in the build configuration.
…onds and improve error handling for invalid formats
jlhughes
reviewed
Nov 3, 2025
jlhughes
reviewed
Nov 3, 2025
jlhughes
approved these changes
Nov 3, 2025
kgrgreer
reviewed
Nov 5, 2025
kgrgreer
reviewed
Nov 17, 2025
…hour, minute, and second
…l-date-parser-in-java
- Implemented tests for various date formats to ensure parity with JavaScript date parsing. - Added tests for timestamps (both 10-digit and 13-digit), single-digit month/day formats, space-separated month names, MM/DD/YY formats, and fractional seconds.
…o DateParser Add support for parsing Unix/Java Date.toString() format (e.g., "Tue Apr 01 05:17:59 GMT 2025") with timezone offset handling. Add Unix timestamps (10-digit seconds, 13-digit milliseconds). Make strictValidation static to match JavaScript singleton behavior. Remove YYMMDD from main entry point - ambiguous with MMDDYY, use opt_name='yymmdd' explicitly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.