Skip to content

Commit

Permalink
Fix time cut-off on time_ns
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Babics committed Feb 14, 2022
1 parent 8994558 commit 087e1c6
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 @@ -180,7 +180,7 @@ def fake_time():
def fake_time_ns():
if _should_use_real_time():
return real_time_ns()
return int(int(fake_time()) * 1e9)
return int(fake_time() * 1e9)


def fake_localtime(t=None):
Expand Down

0 comments on commit 087e1c6

Please sign in to comment.