Skip to content

Commit

Permalink
remove deprecated API call
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Apr 23, 2024
1 parent 719d90f commit c3dfa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacepackets/ccsds/time/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __add__(self, timedelta: datetime.timedelta):
@classmethod
def now(cls) -> CdsShortTimestamp:
"""Returns a seven byte CDS short timestamp with the current time."""
return cls.from_date_time(datetime.datetime.now(tz=datetime.timezone.utc))
return cls.from_datetime(datetime.datetime.now(tz=datetime.timezone.utc))

@classmethod
@deprecation.deprecated(
Expand Down

0 comments on commit c3dfa0d

Please sign in to comment.