Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-568

RangerTimeOfDayMatcher condition does not handle 12am/12pm correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: plugins
    • Labels:
      None

      Description

      RangerTimeOfDayMatcher treats 12am as 720 minutes and 12pm as 1440 minutes from start of the day (midnight). This is incorrect. This results in incorrect condition evaluation when the startTime or endTime in the condition has 12am or 12pm. For example, a condition that allows access between 11am-12pm ends up allowing access from 11am-12am (13 hour duration, instead of 1 hour).

      12am should be treated as 0 minutes and 12pm should be treated as 720 minutes from the start of the day (midnight)

        Attachments

          Activity

            People

            • Assignee:
              madhan Madhan Neethiraj
              Reporter:
              madhan Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: