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

Make a datetime_utils file #213

Open
khxia opened this issue Feb 15, 2022 · 0 comments · May be fixed by #337
Open

Make a datetime_utils file #213

khxia opened this issue Feb 15, 2022 · 0 comments · May be fixed by #337
Assignees
Labels
enhancement New feature or request
Projects

Comments

@khxia
Copy link
Contributor

khxia commented Feb 15, 2022

There seem to be many different places in our repo where we deal with DateTime. Sometimes, these places get their DateTime information in different formats, and they also need their DateTime string in different formats too. Some examples include:

  • Workshop Schedule
  • Announcements Page
  • Home Announcements Banner
  • Home Page Countdown

Some of these components already have their own DateTime helper functions. But perhaps it would be better if we had a central datetime_utils.js file where we can just use those helper functions that abstract away all the annoying stuff like formatting and timezones for us such that we don't have to worry about it when dealing with time. This way we would also have a consistent way of how we deal with DateTime instead of having different methods scattered throughout the repo.

@khxia khxia added the enhancement New feature or request label Feb 15, 2022
@khxia khxia added this to To Do in Post HOTH 9 Apr 9, 2022
@khxia khxia moved this from To Do to Backlog in Post HOTH 9 May 29, 2022
@Monicaaawa Monicaaawa linked a pull request Feb 19, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants