Open th4git opened 2 years ago
I think the "local time of your OS" is the relevant one ... so whats up there? What "date" tells yoi? Else set the timezone there correctly first!
You are right regarding the incorrect time zone settings: My iobroker setup runs two instances: one primary and one secondary instance. Primary had correct CET time zone, secondary (where scene adapter is assigned to) was running on GMT - now corrected.
Now only the second bug mentioned above is still relevant. :-)
Can you then please edit above that it is clear in the initial post? Thank you!
Any progress so far? Additional info or support needed?
Frontend bug (No. 2) seems to be silently fixed at adapter v2.3.9. Bug No. 3 (entered cron actions at system deamon are in fact not changed/deleted) is still open (re-verified again). @GermanBluefox or @Apollon77 : Would be great to get this fixed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
Solution/Cause
Describe the bug
When usingOn time (CRON expression)
orOff time (CRON expression)
~~at a scene, the created cronjob in the background uses UTC time always and NOT the local time of the system. So if local time (e.g. CET = UTC+1) differs from UTC, the cronjobs do not run at expected hours (time shift).~~When editing an already entered cron time atOn time (CRON expression)
(Off time works!)the cursor always jumps to the line end after entering one new character/single digit.To Reproduce
Setup local time different from UTC (e.g. CET). Setup cronjob at scene at specific hour like* 0 10 * * *
The job will not run at 10:00 (CET = UTC+1) but in fact at 9:00 (UTC).Create scene withOn time (CRON expression) = * 0 10 * * *
Mark the minutes "0" with mouse cursor to overwrite it. Type new digits "23". The field will show upOn time (CRON expression) = * 2 10 * * *3
On time (CRON expression) = */2 * * * * *
Save it. Wait 5 seconds until initzialization finishes. Scene now runs every 2 seconds. Now disable this scene. From now on the log shows up with an error every 2 seconds until scene ist activated again or javascript adapter restarted. Even entering an empty or new CRON expression at the scene and saving it will not stop the old cron schedules and their errors at the log.Expected behavior
Jobs scheduled should run at local time not UTC.Entering multiple digits/characters at cursor position should all show up there in a row. At the example aboveOn time (CRON expression) = * 23 10 * * *
Screenshots & Logfiles
The debug logfile ´reflects the (local) time set at scene correctlydebug Initiate cron task for scene.0.TestScene(true): * 0 10 * * *
but schedule runs at UTC.Only video may show behavior. ;-)