Skip to content

Commit 1fe0794

Browse files
committed
Fix local_time() for Python 2.7
1 parent 1fb46ff commit 1fe0794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pendulum/_extensions/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def local_time(unix_time, utc_offset, microseconds):
2828
:rtype: tuple
2929
"""
3030
year = EPOCH_YEAR
31-
seconds = math.floor(unix_time)
31+
seconds = int(math.floor(unix_time))
3232

3333
# Shift to a base year that is 400-year aligned.
3434
if seconds >= 0:

0 commit comments

Comments
 (0)