You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_period_by_date doesn't properly identify period due wrong condition or timezone used to identify whether datetime is within interval limits specified by TariffPeriod
get_period_by_date doesn't properly identify period due wrong condition or timezone used to identify whether datetime is within interval limits specified by TariffPeriod
example:
date_time, 2016-01-01 12:00:00+01:00
date_time.hour, 12
tariffperiod 20DHA, winter, range_h= P1 (12,22), P2 (0,12),(22,24)
interval condition
range_h[0] < hour <= range_h[1]
P1 12 < 12 <= 22 FALSE
P2 0 < 12 <= 12 TRUE
P2 22< 12 <= 24 FALSE
The text was updated successfully, but these errors were encountered: