opening_hours_converter 1.4.13 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opening_hours_converter/opening_hours_parser.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f7b0332fa39ab7fd7bccd3367f011ea09fe6c3b
|
4
|
+
data.tar.gz: 315bdf3aec20526afd2fbdf34c8d095029fa6484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2a0e8e17c646d946c8a6a8f404ffbd2eede13eb4d9480430b06d9a4f8b35a62713e577a63e101550ed348430ff112cb26505437146ac06123781764ab9b960
|
7
|
+
data.tar.gz: 75cc6de841dd19b8c9e8300d3471b667f5f0c455e8a12e30b2e6118a09af615070b8bbbc953d5a77187f3aaedc8beb0ebafe5c03007ab0da6d3993b45311f9d1
|
@@ -280,6 +280,9 @@ module OpeningHoursConverter
|
|
280
280
|
if !interval.nil?
|
281
281
|
start_interval = DateTime.parse(interval["start"])
|
282
282
|
end_interval = DateTime.parse(interval["end"])
|
283
|
+
if end_interval.day == start_interval.day + 1 && end_interval.hour == 0 && end_interval.min == 0
|
284
|
+
end_interval -= (1/1440.0)
|
285
|
+
end
|
283
286
|
date_range.last.typical.add_interval(OpeningHoursConverter::Interval.new(((start_interval.wday + 6) % 7), (start_interval.hour * 60 + start_interval.min), ((end_interval.wday + 6) % 7), (end_interval.hour * 60 + end_interval.min)))
|
284
287
|
end
|
285
288
|
end
|