-
Notifications
You must be signed in to change notification settings - Fork 98
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(dedicated): fix Problem with timezone on graph displays #14430
Conversation
aeb38fa
to
b25c7f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name of commit/PR isn't understandable, could you specify what was fixed
after.setTime(this.dateTime); | ||
after = new Date(this.dateTime); | ||
after = new Date( | ||
after.getTime() + after.getTimezoneOffset() * 4 * 60000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend using date-fns to do this computation, it would be more understandable
You can also separate variables into constant
Personnaly I don't understand what 4 and 60 000 stand for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When accessing the traffic dashboard via URL with a dateTime parameter,
alerts were often not visible due to timezone misalignment.
i just added proper timezone offset handling to ensure alerts appear within the
displayed time window.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't understand what this 4
stands for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of code is outdate, if you look to the new version of code you could see a constant variable which explain what is this 4
.
b25c7f3
to
afe7fda
Compare
ref: UXCT-668 Signed-off-by: William Mbotta <[email protected]>
afe7fda
to
143ed45
Compare
Quality Gate passedIssues Measures |
ref: UXCT-668
master
Only FR translations have been updated[n/a]Breaking change is mentioned in relevant commits[n/a]Description
Fix graph timezone
Related