misc: force dst to resolve ambiguous times when computing slots (#47829)

This commit is contained in:
Frédéric Péters 2020-10-19 09:37:53 +02:00
parent 572858ed15
commit b3c2599efc
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ class SharedTimePeriod(object):
# make sure datetime in local timezone, it's ABSOLUTELY necessary
# to have stable event ids in the API.
event_datetime = make_aware(make_naive(real_min_datetime)).replace(
event_datetime = make_aware(make_naive(real_min_datetime), is_dst=True).replace(
hour=self.start_time.hour, minute=self.start_time.minute, second=0, microsecond=0
)
while event_datetime < max_datetime: