Skip to content

Commit

Permalink
Fix exception when no tz_offset is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
priezz authored Dec 18, 2023
1 parent ca2116f commit 7b408f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freezegun/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def start(self):

is_already_started = len(freeze_factories) > 0
freeze_factories.append(freeze_factory)
tz_offsets.append(self.tz_offset or _tzlocal)
tz_offsets.append(self.tz_offset or _tzlocal.utcoffset(real_datetime.now(datetime.UTC)))
ignore_lists.append(self.ignore)
tick_flags.append(self.tick)

Expand Down

0 comments on commit 7b408f0

Please sign in to comment.