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

fix: fix days being off by one day #3655

Merged
merged 5 commits into from
Mar 22, 2020
Merged

fix: fix days being off by one day #3655

merged 5 commits into from
Mar 22, 2020

Conversation

djaiss
Copy link
Member

@djaiss djaiss commented Mar 4, 2020

This fixes the bugs where dates are sometimes off by one day.

This was because in the DateHelper class, all the conversions are done using the timezone, which should not be the case because when we display the data with this class, we should not care about the timezone.

As a sidenote, overall, the DateHelper class is really messy and ugly and complicated. We need to simplify it greatly in the future.

cc @asbiin

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

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

OK great!

@cypress
Copy link

cypress bot commented Mar 22, 2020



Test summary

20 0 0 0


Run details

Project monica
Status Passed
Commit ead2d34
Started Mar 22, 2020 1:28 PM
Ended Mar 22, 2020 1:29 PM
Duration 01:00 💡
OS Linux Ubuntu Linux - 18.04
Browser Chrome 80

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@djaiss djaiss merged commit a7543e0 into master Mar 22, 2020
@djaiss djaiss deleted the fix-birthdays branch March 22, 2020 13:41
@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants