Releases: spatie/opening-hours
Releases · spatie/opening-hours
2.6.0: Allow to retrieve current and previous opening hours
2.5.0: Allow un-ordered ranges
#128 Allow un-ordered ranges
2.4.1: Allow to pass timezone in TimeRange::format
#121 Allow to pass timezone in TimeRange::format
2.4.0: Allow custom format and timezone in asStructuredData()
#121 Allow custom format and timezone in asStructuredData()
2.3.3: Fix merge when last range of day ends with 24:00
Fix merge when last range of day ends with 24:00
2.3.2: Fix merge with 24:00
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
Add a MaximumLimitExceeded exception to prevent infinite loop
2.3.0: Fix overflow calculation
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
Fix #111 overflow with simple ranges and add tests
2.2.0: Allow opening hours overflowing on the next day
Allow opening hours overflowing on the next day by passing 'overflow' => true
option in array definition