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

Cronjobs nur nach GMT konfigurierbar #1429

Open
hansmorb opened this issue Nov 27, 2023 · 0 comments · May be fixed by #1430
Open

Cronjobs nur nach GMT konfigurierbar #1429

hansmorb opened this issue Nov 27, 2023 · 0 comments · May be fixed by #1430
Assignees
Labels
bug Something isn't working

Comments

@hansmorb
Copy link
Contributor

Describe the bug
Wenn ein Cronjob angelegt wird, dann wird die definierte Uhrzeit in GMT gerechnet. Die aktuelle Zeitzone wird hier also nicht berücksichtigt (ist auch in der Beschreibung so vage dokumentiert)

To Reproduce
Nicht-GMT Zeitzone einschalten -> Erinnerung anlegen, Uhrzeit notieren -> mit wp cron event list den Ausführungszeitpunkt anzeigen lassen

Expected behavior
Der Task sollte sich an der aktuellen Zeitzone orientieren. Dafür gibt es schon die get_gmt_from_date, die müsste nur in der Scheduler Klasse eingesetzt werden.

Screenshots
image
Der Task wurde auf 11:00 geschedulet, in meiner Zeitzone ist das 7 Stunden von jetzt verschoben.

@hansmorb hansmorb added the bug Something isn't working label Nov 27, 2023
@hansmorb hansmorb self-assigned this Nov 27, 2023
hansmorb added a commit that referenced this issue Nov 27, 2023
@hansmorb hansmorb linked a pull request Nov 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo Review DEV
Development

Successfully merging a pull request may close this issue.

1 participant