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

Localize Time in Calendar Event Tooltip #5280

Open
jrjohnson opened this issue Feb 29, 2024 · 0 comments
Open

Localize Time in Calendar Event Tooltip #5280

jrjohnson opened this issue Feb 29, 2024 · 0 comments

Comments

@jrjohnson
Copy link
Member

We're passing a format into https://github.com/ilios/frontend/blob/master/packages/ilios-common/addon/utils/calendar-event-tooltip.js#L5 of h:mma from the calendar events which results in 2:04PM, however we should localize this time instead of hardcoding that format

maybe like this:

this.intl.formatTime(time, {
  hour: 'numeric',
  minute: 'numeric',
});
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

1 participant