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

Clarify when to use date vs datetime #797

Closed
SmilyOrg opened this issue Feb 16, 2024 · 2 comments
Closed

Clarify when to use date vs datetime #797

SmilyOrg opened this issue Feb 16, 2024 · 2 comments

Comments

@SmilyOrg
Copy link
Member

SmilyOrg commented Feb 16, 2024

Adjust rule 169 to consider the following points (up for discussion)

  • date should be used for cases where the day itself matters, e.g. holidays, document dates, ETAs (shipping notices), birthdays. Usually this means the "local day", i.e. the time period midnight to midnight in the local time zone.
  • datetime should be used to indicate instants/moments in time, i.e. a form was submitted at 2024-02-16T16:19:00Z, it may also be better to implement filtering by dates (e.g. with date picker) as datetime to make the client decide on whether a date is implicit or explicit and which timezone it refers to (unless the filtering would filter to events that happened on a certain day in every timezone,)
@ePaul
Copy link
Member

ePaul commented Mar 5, 2024

We agreed it should be a new rule, not part of 169. Working title:

  • Should select appropriate one of date or date-time format

(Internal discussion notes)

@ePaul
Copy link
Member

ePaul commented May 28, 2024

Done with #808.

@ePaul ePaul closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants