-
Notifications
You must be signed in to change notification settings - Fork 0
fix: fixing date formatter PIDM-1100 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This pull request does not contain a valid label. Please add one of the following labels: |
} catch (DateTimeParseException e2) { | ||
throw new IllegalArgumentException("Date format not supported: " + dateStr); | ||
} | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
try { | |
try { | |
return LocalDateTime.parse(dateStr + "T00:00:00", DATE_TIME_FORMATTER); | |
} catch (DateTimeParseException e2) { | |
try { |
return LocalDateTime.parse(dateStr + "T00:00:00", DATE_TIME_FORMATTER); | ||
} catch (DateTimeParseException e2) { | ||
try { | ||
return LocalDateTime.parse(dateStr.substring(0, 10) + "T00:00:00", DATE_TIME_FORMATTER); | ||
} catch (DateTimeParseException e3) { | ||
throw new IllegalArgumentException("Date format not supported: " + dateStr); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
return LocalDateTime.parse(dateStr + "T00:00:00", DATE_TIME_FORMATTER); | |
} catch (DateTimeParseException e2) { | |
try { | |
return LocalDateTime.parse(dateStr.substring(0, 10) + "T00:00:00", DATE_TIME_FORMATTER); | |
} catch (DateTimeParseException e3) { | |
throw new IllegalArgumentException("Date format not supported: " + dateStr); | |
} | |
return LocalDateTime.parse(dateStr.substring(0, 10) + "T00:00:00", DATE_TIME_FORMATTER); | |
} catch (DateTimeParseException e3) { | |
throw new IllegalArgumentException("Date format not supported: " + dateStr); |
throw new IllegalArgumentException("Date format not supported: " + dateStr); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
} | |
} | |
} |
|
List of Changes
YYYY-MM-DD+00:00
formatMotivation and Context
Needed to adapt to some psp who put the wrong input
How Has This Been Tested?
Manually
Screenshots (if appropriate):
Types of changes
Checklist: