Skip to content

Commit

Permalink
Use datetime.timezone.utc instead of datetime.datetime.utcnow()
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 27, 2024
1 parent 6aeb81a commit f9c0ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coordio/sofa_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_internal_date(self, date=None, scale='UTC'):
"""

if date is None:
date = datetime.datetime.utcnow()
date = datetime.datetime.now(datetime.timezone.utc)
scale = 'UTC'

d1 = c_double()
Expand Down

0 comments on commit f9c0ab2

Please sign in to comment.