1. 23 Oct, 2021 1 commit
    • David Faure's avatar
      Don't turn 20:00-26:00 into 20:00-02:00 · 0d02b176
      David Faure authored
      Changing the input (like we do when it's invalid) means Osmose users
      are told the input is invalid, which isn't the case for 26:00.
      
      Normalize internally for evaluating, but not for toExpression().
      
      This required adding a bool for pointInTime, since begin=10 end=10
      can be either 10:00 or 10:00-10:00 (no longer stored as 10:00-34:00).
      It makes things pretty straightforward actually: if there was a '-'
      in the input, toExpression() outputs a '-', otherwise it doesn't.
      0d02b176
  2. 07 Oct, 2021 2 commits
  3. 30 Sep, 2021 1 commit
  4. 05 Sep, 2021 1 commit
  5. 25 Aug, 2021 1 commit
  6. 18 Aug, 2021 2 commits
  7. 10 Jul, 2021 1 commit
  8. 30 Jun, 2021 1 commit
  9. 02 May, 2021 1 commit
    • David Faure's avatar
      Fix invalid simplification on wrapped weekday selectors · 2d24fcfb
      David Faure authored
      e.g. Sa-Tu was removed completely (!)
      Now WeekdayRange::simplify both parses such selectors, and can
      output such selectors, going back as far as possible from Monday
      if the days before it are part of the selector too.
      2d24fcfb
  10. 11 Apr, 2021 1 commit
  11. 05 Apr, 2021 2 commits
  12. 01 Apr, 2021 1 commit
  13. 21 Mar, 2021 2 commits
  14. 20 Mar, 2021 4 commits
  15. 19 Mar, 2021 1 commit
  16. 17 Mar, 2021 3 commits
    • David Faure's avatar
      363cd007
    • Volker Krause's avatar
      Fix calculation of easter offsets · 6b5751c4
      Volker Krause authored
      Using the same approach as for calculating weekday offsets from month
      boundaries is wrong on multiple levels (wrong reference dates, wrong
      handling of Sunday offsets), so add a separate method for this.
      6b5751c4
    • David Faure's avatar
      autocorrect wrong use of ';' where ',' was expected · 26569483
      David Faure authored
      We can detect the common case of
      - Mo-Sa 12:00-15:00; 18:00-24:00
      + Mo-Sa 12:00-15:00,18:00-24:00
      based on the fact that the second rule has no time selector.
      
      The JS evaluation_tool doesn't do this autocorrect though, and
      adds the two time ranges (as if "Mo-Sa 12:00-15:00, Mo-Su 18:00-24:00")
      rather than overwriting the first rule with the second as I thought would happen.
      
      It's still very unlikely that this is what the author meant though...
      
      Do the same in case of identical weekdays (and no other selector):
      - Mo-Sa 12:00-15:00; Mo-Sa 18:00-24:00
      + Mo-Sa 12:00-15:00,18:00-24:00
      26569483
  17. 14 Mar, 2021 3 commits
  18. 13 Mar, 2021 3 commits
  19. 07 Mar, 2021 1 commit
  20. 22 Feb, 2021 1 commit
  21. 21 Feb, 2021 4 commits
  22. 20 Feb, 2021 1 commit
    • David Faure's avatar
      Add abbreviated French days · 4f54362b
      David Faure authored
      This adds
      Ma, Me, Je, Ve
      (but not Mar because of March)
      
      AFAICS they don't conflict with other languages,
      and Me+Ve also work for italian.
      4f54362b
  23. 14 Feb, 2021 1 commit
  24. 13 Feb, 2021 1 commit