How can I set the time in dify 1.3 to be the same as the current time? The time displayed on dify now is 12 hours later than the current time #13657

Closed
opened 2026-02-21 19:13:11 -05:00 by yindo · 4 comments
Owner

Originally created by @mxyd on GitHub (May 6, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

How can I set the time in dify 1.3 to be the same as the current time? The time displayed on dify now is 12 hours later than the current time
dify 1.3 怎么把时间设置成和当前时间设置成一样的,现在dify上展示的时间比当前时间晚12个小时,现在时间是
2025-05-07 11:24 dify上的时间是 2025-05-06 23:24

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @mxyd on GitHub (May 6, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce How can I set the time in dify 1.3 to be the same as the current time? The time displayed on dify now is 12 hours later than the current time dify 1.3 怎么把时间设置成和当前时间设置成一样的,现在dify上展示的时间比当前时间晚12个小时,现在时间是 2025-05-07 11:24 dify上的时间是 2025-05-06 23:24 ![Image](https://github.com/user-attachments/assets/3a07d85e-8edb-4b86-8fe1-c2d04dbc5f81) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:13:11 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 6, 2025):

To adjust the time settings in Dify 1.3 to match the current time, you need to change the timezone setting. Since the displayed time is 12 hours behind, it is likely set to a timezone that is 12 hours behind your current timezone. You can update the timezone parameter in the current_time tool configuration to match your local timezone. For example, if your current timezone is Asia/Tokyo, you can set it as follows:

parameters:
  - name: timezone
    type: select
    required: false
    default: Asia/Tokyo

Choose the appropriate timezone from the available options in the configuration to match your local time [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 6, 2025): <!-- Answer --> To adjust the time settings in Dify 1.3 to match the current time, you need to change the timezone setting. Since the displayed time is 12 hours behind, it is likely set to a timezone that is 12 hours behind your current timezone. You can update the timezone parameter in the `current_time` tool configuration to match your local timezone. For example, if your current timezone is Asia/Tokyo, you can set it as follows: ```yaml parameters: - name: timezone type: select required: false default: Asia/Tokyo ``` Choose the appropriate timezone from the available options in the configuration to match your local time <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/builtin_tool/providers/time/tools/current_time.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4f10782c-b7b7-4cdb-8f5f-90181a020c03?feedback_type=other)</sup>
Author
Owner

@mxyd commented on GitHub (May 6, 2025):

Under which file of dify do I need to modify the location

我需要再dify的哪个文件下修改位置

@mxyd commented on GitHub (May 6, 2025): Under which file of dify do I need to modify the location 我需要再dify的哪个文件下修改位置
Author
Owner

@dosubot[bot] commented on GitHub (May 6, 2025):

To modify the timezone setting in Dify, you need to update the timezone parameter in the api/core/tools/builtin_tool/providers/time/tools/current_time.yaml file. Additionally, you may need to check the api/extensions/ext_timezone.py file where the environment variable TZ is set to "UTC" [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 6, 2025): <!-- Answer --> To modify the timezone setting in Dify, you need to update the `timezone` parameter in the `api/core/tools/builtin_tool/providers/time/tools/current_time.yaml` file. Additionally, you may need to check the `api/extensions/ext_timezone.py` file where the environment variable `TZ` is set to `"UTC"` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/builtin_tool/providers/time/tools/current_time.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c8dc1138-d5dc-4f1b-b664-4538c14dbdcd?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (May 6, 2025):

Settings -> Language -> Timezone

@crazywoola commented on GitHub (May 6, 2025): Settings -> Language -> Timezone
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13657