dify icon indicating copy to clipboard operation
dify copied to clipboard

When using the knowledgeBase for recall testing, the recorded time different from the actual time by 13 hours

Open HokerLIU opened this issue 1 year ago • 1 comments

Self Checks

  • [x] I have read the Contributing Guide and Language Policy.
  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report, otherwise it will be closed.
  • [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Cloud or Self Hosted

Cloud

Steps to reproduce

When using the knowledgeBase for recall testing, the recorded time different from the actual time by 13 hours

Image

Image

✔️ Expected Behavior

the record time is same as the actual time

❌ Actual Behavior

When using the knowledgeBase for recall testing, the recorded time different from the actual time by 13 hours

Image

Image

HokerLIU avatar Nov 13 '25 03:11 HokerLIU

This 13-hour time discrepancy is a known issue in Dify and is almost always caused by timezone handling problems between the backend and frontend. The backend stores timestamps in UTC, and the frontend is supposed to convert them to your local timezone using your profile settings. However, there are persistent bugs where the timezone setting in the UI doesn't save or apply correctly, so the frontend may display UTC or another default timezone instead of your local time, resulting in offsets like 12 or 13 hours. This has been reported in multiple versions, including 1.9.2 cloud deployments, and is discussed in detail in related issues (example, example).

Workarounds include: double-checking your profile or workspace timezone setting in the Dify web UI, and if possible, setting it to your local timezone. If the setting doesn't persist, this is a known bug. Upgrading to the latest version may help, but similar issues have been reported even in newer releases. The backend and logs should remain in UTC, and the frontend should handle the conversion, but until the bug is fixed, you may continue to see this offset.

If you need the correct time urgently, you can manually adjust for the offset when reading the logs, or check if your browser's developer tools show the raw UTC timestamp and convert it locally.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Nov 13 '25 03:11 dosubot[bot]