sequence subtraction bug
drmax24 opened this issue · comments
drmax24 commented
Bug Report
Information | Description |
---|---|
Version | 4.9.0 |
PHP version | 7.3 |
Summary
after substraction of sequences i have the following period:
object(League\Period\Sequence)#5214 (1) {
["intervals":"League\Period\Sequence":private]=>
array(73) {
[0]=>
object(League\Period\Period)#5216 (3) {
["startDate":"League\Period\Period":private]=>
object(League\Period\Datepoint)#5162 (3) {
["date"]=>
string(26) "2020-01-21 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Moscow"
}
["endDate":"League\Period\Period":private]=>
object(League\Period\Datepoint)#4092 (3) {
["date"]=>
string(26) "2020-01-20 21:30:00.000000"
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}
["boundaryType":"League\Period\Period":private]=>
string(2) "[]"
}
It has the end date which is actually earlier than the start date.
Subtrahend sequence consists of overnight periods. And initial sequence is a single long period.
drmax24 commented
Looks like i overlooked timezones in this report. Close plz