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

[BUG] Monitor does not use the configured timezone and fallbacks to UTC+0 time #839

Closed
tangcl opened this issue Nov 27, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@tangcl
Copy link

tangcl commented Nov 27, 2023

What is the bug?
monitor alerting timezone is wrong

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. my timezone is GMT+8
  2. I have set opensearch-dashboard time zone=Asia/Shanghai
  3. open a trigger's alerting, and press button "Preview message"
  4. ctx.periodStart is utc+0

What is the expected behavior?
Press "Preview message" ,and "ctx.periodStart" timezone is Asia/Shanghai

What is your host/environment?

  • OS: [CentOS 7.9]
  • Version [2.11]

Do you have any screenshots?
image
period_end is right timestamp, but code "alerting-dashboards-plugin/public/pages/CreateTrigger/utils/helper.js" line number 59 show me it use utc:
image

Do you have any additional context?
I think this code should change like "moment.utc(_.get(executeResponse, 'period_start', Date.now())).local().format()

@tangcl tangcl added bug Something isn't working untriaged labels Nov 27, 2023
@amsiglan amsiglan changed the title [BUG] [BUG] Monitor does not use the configured timezone and fallbacks to UTC+0 time Apr 2, 2024
@amsiglan amsiglan self-assigned this Apr 2, 2024
@amsiglan amsiglan closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants