- Documentation
Code Pipeline
FAQs
Application delivery FAQ
How to set the time zone for an application
Application delivery FAQ
How to set the time zone for an application
How to set the time zone for an application
For Kubernetes applications, the default timezone inside containers is UTC+0. If you want to use a different time zone, you can do so by setting environment variables.
Of these,
- The possible values for value can be found in the Time zone summary documentation. For example, the UTC+8 time zone is Asia/Shanghai.
Below, we introduce how to set environment variables for different types of applications.
Managed application
When deploying a managed application, set the time zone environment variable on the Advanced configuration page. After completing the settings, proceed with deployment as usual.
OAM applications
- In the application orchestration tab, select the target component, click edit, and configure the time zone environment variable.
- Set the active environment. Click Orchestration History, and on the Orchestration History page, make the recent orchestration effective in the target environment.
- Switch to the environment tab and deploy to the target environment.
K8s YAML applications
- In the application orchestration tab, select the target workload, click Edit, and set the time zone environment variable.
- After completing the settings, click confirm, and in the pop-up dialog box, select the environment in which this configuration will take effect.
- Switch to the environment tab and deploy to the target environment.
Last updated: 2025.09.10 17:37:25