Skip to content

PT-FIXES: DOS-1290 DateParser in java #4559

Merged
Nauna merged 19 commits intodevelopmentfrom
date-util-date-parser-in-java
Jan 20, 2026
Merged

PT-FIXES: DOS-1290 DateParser in java #4559
Nauna merged 19 commits intodevelopmentfrom
date-util-date-parser-in-java

Conversation

@abdelaziz-mahdy
Copy link
Collaborator

No description provided.

…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
- 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.
@Nauna Nauna merged commit 170460f into development Jan 20, 2026
1 check passed
@Nauna Nauna deleted the date-util-date-parser-in-java branch January 20, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants