Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Specify precision for collapsing range #13

Closed
sffc opened this issue Jul 14, 2019 · 1 comment
Closed

Specify precision for collapsing range #13

sffc opened this issue Jul 14, 2019 · 1 comment

Comments

@sffc
Copy link

sffc commented Jul 14, 2019

There was an interesting bug that came in when implementing fractionalSecondDigits:

https://bugs.chromium.org/p/v8/issues/detail?id=9474

It seems that formatRange should specify the case when dates collapse. That should not be locale-dependent. For example, if the two dates appear different when formatted alone, then the range should not collapse.

Note: The input dates could be different, and the range could still collapse, if the fields to be displayed are less precise than the difference between the dates. The criterion for collapsing should consider the dates after fields have been applied, similar to rounding a number.

@sffc
Copy link
Author

sffc commented Sep 10, 2020

I think we should wait for user feedback and revisit this in the future with a new formatting option.

@sffc sffc closed this as completed Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant