Skip to content

Releases: spatie/opening-hours

2.4.1: Allow to pass timezone in TimeRange::format

19 Jun 17:32
Compare
Choose a tag to compare

#121 Allow to pass timezone in TimeRange::format

2.4.0: Allow custom format and timezone in asStructuredData()

19 Jun 12:51
Compare
Choose a tag to compare

#121 Allow custom format and timezone in asStructuredData()

2.3.3: Fix merge when last range of day ends with 24:00

14 Jun 22:24
Compare
Choose a tag to compare

Fix merge when last range of day ends with 24:00

2.3.2: Fix merge with 24:00

10 Jun 09:17
c732e8c
Compare
Choose a tag to compare

Fix #115 return 24:00 when Time::fromString('24:00') is casted to string

2.3.1: Add a MaximumLimitExceeded exception to prevent infinite loop

06 Jun 22:29
350e916
Compare
Choose a tag to compare

Add a MaximumLimitExceeded exception to prevent infinite loop

2.3.0: Fix overflow calculation

05 Jun 06:49
Compare
Choose a tag to compare

TimeRange no longer return true on containsTime for times overflowing next day
Overflow is now calculated at the day level (OpeningHoursForDay)
New methods:

OpeningHoursForDay::isOpenAtNight
TimeRange::overflowsNextDay

2.2.1: Fix overflow with simple ranges

04 Jun 15:55
1487462
Compare
Choose a tag to compare

Fix #111 overflow with simple ranges and add tests

2.2.0: Allow opening hours overflowing on the next day

07 May 09:40
e31ec7f
Compare
Choose a tag to compare

Allow opening hours overflowing on the next day by passing 'overflow' => true option in array definition

2.1.2: Set precise time bounds

14 Mar 14:57
3916f9a
Compare
Choose a tag to compare

Fix #98 Set precise time bounds

2.1.1: Handle hours/data in any order

22 Feb 12:06
Compare
Choose a tag to compare

Fix #95 Handle hours/data in any order