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

UICAL-152: Fix calendar exceptions displaying on wrong day of week (offset by a day) #342

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

Dmitriy-Litvinenko
Copy link
Contributor

@Dmitriy-Litvinenko Dmitriy-Litvinenko commented Sep 1, 2021

Purpose

Day of work and exceptions displaying on wrong day of week

Approach

We have some problem in react-big-calendar with timezone (Moves everything over a day) more details in
jquense/react-big-calendar#118 ,
jquense/react-big-calendar#809 and etc.
How you can see for timezone 0 and bigger work correctly (Screenshot section). Current bug reproducible only for timezone less than 0. This is problem with "react-big-calendar" all the days shifts over by 1 and this is workaround for resolve problem with "react-big-calendar". For resolve current problem we use accessor and offset hours.

Stories

https://issues.folio.org/browse/UICAL-152
https://issues.folio.org/browse/UICAL-157

Screenshot

Before changes (example with deferent timezone)

UTC+2
image
UTC -1
image
UTC -12
image
shifted days for timezone less than 0
image

After changes

image

@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Dmitriy-Litvinenko Dmitriy-Litvinenko merged commit 1268b13 into master Sep 6, 2021
@Dmitriy-Litvinenko Dmitriy-Litvinenko deleted the UICAL-152 branch September 6, 2021 08:39
@Dmitriy-Litvinenko Dmitriy-Litvinenko restored the UICAL-152 branch September 6, 2021 08:39
@Dmitriy-Litvinenko Dmitriy-Litvinenko deleted the UICAL-152 branch September 6, 2021 08:39
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.

4 participants