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

set timezone to scdf dashboard #2009

Closed
GYEOLELEE opened this issue Aug 9, 2024 · 3 comments
Closed

set timezone to scdf dashboard #2009

GYEOLELEE opened this issue Aug 9, 2024 · 3 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@GYEOLELEE
Copy link

  • I use spring-cloud-dataflow(scdf) in the k8s environment.
  • As a team rule, the application and database time zone must be set to Asia/Seoul.
  • The timezone will be modified by changing the application property as follows. spring.cloud.dataflow.task.platform.kubernetes.accounts.default.environmentVariables=JAVA_TOOL_OPTIONS=-Duser.timezone=Asia/Seoul

However, in scdf dashboard, it is considered UTC and shows +9 at the stored time.
How can I set the dashboard default timezone?

GOAL: set timezone to scdf dashboard

Ref: https://stackoverflow.com/questions/77952329/spring-cloud-dataflow-ui-timezone-use-only-utc
Cc: @hotjoy

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Aug 9, 2024
@corneil
Copy link
Contributor

corneil commented Aug 14, 2024

@GYEOLELEE
The property spring.cloud.dataflow.task.platform.kubernetes.accounts.default.environmentVariables will only affect the timezone of deployed tasks.

Setting the environmentVariables to TZ=Asia/Seoul will apply to all programs in the pod as well as JVM.
Also configure the timezones of Dataflow and Skipper by adding to deployments.

    env:
        TZ: Asia/Seoul

@corneil
Copy link
Contributor

corneil commented Aug 14, 2024

@GYEOLELEE Can you provide a screen shot of the times that are not being displayed as expected. If this includes the desktop display of the system time it will be helpful.

@hotjoyit
Copy link

@corneil Thank you so much for your response! Your guidance was instrumental in resolving our issue, and we truly appreciate the support you’ve provided. Our team can now move forward smoothly thanks to your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

4 participants