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

feat: Add timezone conversion for premium user check #2670

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

StanGirard
Copy link
Collaborator

This commit adds timezone conversion to the premium user check in the check_if_is_premium_user function. It imports the pytz library and retrieves the current time in the "Europe/Paris" timezone. This ensures that the comparison of the current period end with the current time is accurate, taking into account the correct timezone. The Paris time is logged for debugging purposes.

Co-authored-by: Stan Girard stan@quivr.app

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Checklist before requesting a review

Please delete options that are not relevant.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented hard-to-understand areas
  • I have ideally added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Screenshots (if appropriate):

This commit adds timezone conversion to the premium user check in the `check_if_is_premium_user` function. It imports the `pytz` library and retrieves the current time in the "Europe/Paris" timezone. This ensures that the comparison of the current period end with the current time is accurate, taking into account the correct timezone. The Paris time is logged for debugging purposes.

Co-authored-by: Stan Girard <stan@quivr.app>
Copy link

vercel bot commented Jun 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quivrapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 9:00am

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. area: backend Related to backend functionality or under the /backend directory labels Jun 13, 2024
@StanGirard StanGirard merged commit 52d121b into main Jun 13, 2024
2 of 3 checks passed
@StanGirard StanGirard deleted the feat/timezone branch June 13, 2024 08:54
Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

StanGirard added a commit that referenced this pull request Jun 13, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.265 (2024-06-13)

## What's Changed
* feat: Add timezone conversion for premium user check by @StanGirard in
#2670


**Full Changelog**:
v0.0.264...v0.0.265

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant