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

The remaining time is now correctly displayed in the contest's card. #1241

Merged

Conversation

deyordanov
Copy link

The function incorrectly converts the 'date' variable to UTC, despite it already being in UTC format. This leads to incorrect calculations. The 'date' variable does not explicitly specify its timezone (e.g., 2024-06-20T21:00:16), so calling .utc() on it shifts the time by -3 hours, resulting in an incorrect value (e.g., 2024-06-20T18:00:16). This change removes the unnecessary UTC conversion, ensuring accurate calculations.

Closes https://github.com/SoftUni-Internal/exam-systems-issues/issues/1308

The function incorrectly converts the 'date' variable to UTC, despite it already being in UTC format. This leads to incorrect calculations. The 'date' variable does not explicitly specify its timezone (e.g., 2024-06-20T21:00:16), so calling .utc() on it shifts the time by -3 hours, resulting in an incorrect value (e.g., 2024-06-20T18:00:16). This change removes the unnecessary UTC conversion, ensuring accurate calculations.
@deyordanov deyordanov requested a review from gogo4ds June 21, 2024 14:34
@deyordanov deyordanov enabled auto-merge (squash) June 21, 2024 14:35
@deyordanov deyordanov merged commit 3c61786 into v2-development Jun 22, 2024
7 checks passed
@deyordanov deyordanov deleted the 1308-remaining-time-in-contest-cards-is-not-correct branch June 22, 2024 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants