Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21491

Time restriction does not work if earliest >= latest

      When setting up a time condition with earliest >= latest, for example 23:00 and 06:00 to run the step in the night, the condition evaluates to false. Log extract:

      Time condition: evaluating [23:00] <= 12:15 AM <= [06:00]
      Run condition [Time] preventing perform for step [BuilderChain]
      

          [JENKINS-21491] Time restriction does not work if earliest >= latest

          Andy Bigos added a comment -

          Just hit the same issue. Would be great if the period could span midnight.

          Andy Bigos added a comment - Just hit the same issue. Would be great if the period could span midnight.

          It is worse - the plugin does not properly compare 12hr - 24hr clock. I will try setting the clock of Jenkins to 24hr (using the Locale language setting).

          Nikolay Diakov added a comment - It is worse - the plugin does not properly compare 12hr - 24hr clock. I will try setting the clock of Jenkins to 24hr (using the Locale language setting).

            bap bap
            rschuetz Ronny Schuetz
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: