Scheduler with random displayed time

  • Platform information:
    • Hardware: Self-assembled, mighty Home Server :slight_smile:
    • OS: Debian 11, Docker w/ portainer
    • Java Runtime Environment: 11.0.13
    • openHAB version: 3.2 official docker image
  • Issue of the topic: scheduled times are not displayed in correct timezone

Hey friends,

When setting-up a scheduled script, the time on the dashboard does not correspond to the cron job time.
Nevertheless I’m setting up the server als local time zone (Germany/Berlin) or make it default with no special settings, I have a time gap.

example for displaying ONE action:

Schedule view: 03:00
WHEN-Condition: 05:00
Detail-View: 08:00

Code:

configuration: {}
triggers:
  - id: "1"
    configuration:
      cronExpression: 0 0 8 * * ? *
    type: timer.GenericCronTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      considerConditions: true
      ruleUIDs:
        - 6e46fd4a55
    type: core.RunRuleAction

SHOULD BE 05:00.

:smiley:

Any suggestions?
Thanks a lot

patrick

Recent post

Scheduler uses Java timezone

In addition to @rossko57s statement:

Why should it be 05:00 if you set:

I would have expected 08:00 with this cron statement.

Yes I see.
Anyone who knows how to change the Java time system-wide?

I think you want to change the Java timezone? You’ll want to find out to set an EXTRA_JAVA_OPTS in whatever environment your Java runs in. Same thread already linked -

1 Like

Ha ha, I was just trying to find my post to help you but @rossko57 actually beat me to it :grinning:

2 Likes