Skip to content

LS26001067: return default message on unknown date format#2853

Merged
pasere-smeup merged 1 commit intodevelopfrom
fix/handle-unknown-date-format
May 5, 2026
Merged

LS26001067: return default message on unknown date format#2853
pasere-smeup merged 1 commit intodevelopfrom
fix/handle-unknown-date-format

Conversation

@andraasi
Copy link
Copy Markdown
Collaborator

@andraasi andraasi commented May 5, 2026

This pull request makes a small but important improvement to the KupDates date formatting logic. The change ensures that if the date parsing fails and returns null or undefined, the method will now return a clear error message instead of causing a runtime error.

  • Improved robustness of the toLocaleString call in the KupDates class: If the date cannot be parsed, the method now returns a descriptive error message instead of throwing an exception.

@andraasi andraasi marked this pull request as draft May 5, 2026 08:28
@andraasi andraasi marked this pull request as ready for review May 5, 2026 09:04
Copy link
Copy Markdown
Collaborator

@pasere-smeup pasere-smeup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@pasere-smeup pasere-smeup merged commit 777ce42 into develop May 5, 2026
1 check passed
@pasere-smeup pasere-smeup deleted the fix/handle-unknown-date-format branch May 5, 2026 11:13
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.

2 participants