Problems with opening_hours

Hello!

There’s an amenity with opening hours as follows:

  • From October until April: Monday-Friday 8:00-19:00, weekends 9:00-17:00

  • From May until September: Monday-Friday 8:00-20:00, weekends 9:00-19:00

I’m trying to express this information in opening_hours tag. I’ve tried both

opening_hours=Oct-Apr: Mo-Fr 08:00-19:00, Sa-Su 09:00-17:00; May-Sep: Mo-Fr 08:00-20:00, Sa-Su 09:00-19:00

and more verbose

opening_hours=Oct-Apr: Mo-Fr 08:00-19:00; Oct-Apr: Sa-Su 09:00-17:00; May-Sep: Mo-Fr 08:00-20:00; May-Sep: Sa-Su 09:00-19:00

In both cases, the evaluation tool shows it’s wrong, for example for weekends now in January, when it should be 9:00-17:00, it shows summer weekend opening times (9:00-19:00).

How to express these opening times properly?

I must admit, though the syntax of opening_hours is clearly defined, the semantics seem confusing.

Hi

Sorry for the late replay. Your second more verbose value is correct.

Oct-Apr: Mo-Fr 08:00-19:00; Oct-Apr: Sa-Su 09:00-17:00; May-Sep: Mo-Fr 08:00-20:00; May-Sep: Sa-Su 09:00-19:00

The problem with your first one is that “Sa-Su 09:00-19:00” (last rule) is one rule of its own so it overwrites all ‘Sa-Su’ previously defined. “May-Sep:” does only apply to “Mo-Fr 08:00-20:00”. I worked on the specification quite a bit. I hope it is now simpler to see that an additional rule is an rule of its own and there is no magically figured out part of previous rules applied to it :).