Skip to content

Commit e1ea928

Browse files
committed
Removes duplicate call to utcoffset() in instance()
1 parent fac1f09 commit e1ea928

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pendulum/pendulum.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ def instance(cls, dt, tz=UTC):
221221
# We have no sure way to figure out
222222
# the timezone name, we fallback
223223
# on a fixed offset
224-
offset = dt.utcoffset()
225-
226224
tz = dt.utcoffset().total_seconds() / 3600
227225

228226
return cls(

0 commit comments

Comments
 (0)