Skip to content

[Bug] [Timed Task Parameters] Timed Task Parameter Problem #17031

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

Open
2 of 3 tasks
Zhang-Yidadada opened this issue Feb 27, 2025 · 3 comments
Open
2 of 3 tasks

[Bug] [Timed Task Parameters] Timed Task Parameter Problem #17031

Zhang-Yidadada opened this issue Feb 27, 2025 · 3 comments
Labels
question Further information is requested Stale

Comments

@Zhang-Yidadada
Copy link

Zhang-Yidadada commented Feb 27, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

在定时任务的基本信息中,设置全局变量 dt 为 $[yyyy-MM-dd HH:mm:ss],并在其中一个节点中使用 dt 并存入业务表中,每天零点定时或者手动执行任务,但是在数据库中存储的时间是 utc 时间

What you expected to happen

如果零点执行,或者手动执行,存储的应该是执行的时间,如果我本地时间 8:00 执行,那数据库应该存储的是 8:00 而不是 0:00(我在 UTC + 8 的国家)

How to reproduce

N/A

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@Zhang-Yidadada Zhang-Yidadada added bug Something isn't working Waiting for reply Waiting for reply labels Feb 27, 2025
@github-actions github-actions bot changed the title [Bug] [定时任务参数] 定时任务参数问题 [Bug] [Timed Task Parameters] Timed Task Parameter Problem Feb 27, 2025
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

In the basic information of the timing task, set the global variable dt to $[yyyy-MM-dd HH:mm:ss], and use dt in one of the nodes and store it in the business table. The task is executed at zero or manually, but the time stored in the database is utc time

What you expected to happen

If executed at zero, or manually, the execution time should be stored. If I execute at 8:00 local time, the database should store 8:00 instead of 0:00 (I am in the country of UTC + 8)

How to reproduce

N/A

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@SbloodyS
Copy link
Member

The utc time is stored in the database instead of the time in the current time zone.

@SbloodyS SbloodyS added question Further information is requested and removed bug Something isn't working Waiting for reply Waiting for reply labels Mar 28, 2025
Copy link

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants