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

NRPT-694: fixed time zone for CMDB #794

Merged
merged 3 commits into from
Mar 8, 2021
Merged

Conversation

MaxWardle
Copy link
Contributor

https://bcmines.atlassian.net/browse/NRPT-694

After a lot of investigation and confusion as to the source of this issue, I realized that there are different time offsets for daylight savings, so the -7 offset is correct for dates between ~ March and ~ November. To be specific the offset during daylight savings will be -7 and the rest of the time it will be -8, so the moment library is setting the offset correctly for CSV imports as far as I can tell. Because the CSV imports do not run nightly like the other integrations, we don't have to worry about server side UTC time zone mixups. I did find one bug to fix the time zone on the CMDB CSV import, and that is the only change in this PR. If I'm missing something drastic here please let me know.

@sonarcloud
Copy link

sonarcloud bot commented Mar 8, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@MaxWardle MaxWardle merged commit e831095 into bcgov:master Mar 8, 2021
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.

3 participants