Skip to content
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

dateRange formatter: Use dateFormatOptions for same-day end times #1126

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

tmeyer2115
Copy link
Collaborator

If an end date is on the same day, the dateRange formatter will not show the month, day, and year of the end date, only the time.

However, it was passing in the default format options with month, day, and year removed instead of using the format options passed in through the dateFormatOptions parameter.

This update makes it so that dateFormatOptions are respected for end times with only the options for month, day, and year removed.

J=PC-201542
TEST=manual

If an end date is on the same day, the dateRange formatter will
not show the month, day, and year of the end date, only the time.

However, it was passing in the default format options with
month, day, and year removed instead of using the format
options passed in through the dateFormatOptions parameter.

This update makes it so that dateFormatOptions are respected
for end times with only the options for month, day, and year
removed.

J=PC-201542
TEST=manual
@coveralls
Copy link

Coverage Status

Coverage: 8.817%. Remained the same when pulling f9438a7 on jronkin/dateRange-end-format-fix into b3d626f on hotfix/v1.30.1.

@tmeyer2115 tmeyer2115 merged commit 0aee609 into hotfix/v1.30.1 Feb 7, 2023
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.

None yet

3 participants