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

Remove Timex.today #4357

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Remove Timex.today #4357

merged 2 commits into from
Jul 23, 2024

Conversation

ruslandoga
Copy link
Contributor

@ruslandoga ruslandoga commented Jul 16, 2024

Continues #4338

Changes

This PR continues the removal of Timex by replacing Timex.today/0 with Date.utc_today/0 which was already being delegated to. Additionally, it replaces a single instance of Timex.today/1 with similar DateTime functions. I'm using "similar" and not "equivalent" because now we raise an error on an invalid timezone instead of returning an error tuple, which previously could cause match errors downstream thus hiding the actual issue.

Tests

  • The tests are still kept unchanged for now to ensure that there are no unforeseen differences.

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

Copy link
Member

@aerosol aerosol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

Copy link

Preview environment👷🏼‍♀️🏗️
PR-4357

@ruslandoga ruslandoga marked this pull request as ready for review July 23, 2024 02:17
@ruslandoga ruslandoga requested a review from a team July 23, 2024 02:17
Copy link
Contributor

@zoldar zoldar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@zoldar zoldar merged commit 1f2ebe4 into master Jul 23, 2024
13 checks passed
@zoldar zoldar deleted the rm-timex-today branch July 23, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants