Skip to content

Update deprecated datetime call#283

Merged
thomas-bc merged 1 commit intonasa:develfrom
nateinaction:utcnow-deprecated
Feb 2, 2026
Merged

Update deprecated datetime call#283
thomas-bc merged 1 commit intonasa:develfrom
nateinaction:utcnow-deprecated

Conversation

@nateinaction
Copy link
Contributor

Related Issue(s)
Has Unit Tests (y/n) n
Documentation Included (y/n) n

Change Description

This PR is updates a deprecated call to the datetime library.

Rationale

Fixing warnings:

FprimeZephyrReference/test/int/rtc_test.py::test_04_sequence_cancellation_on_time_set
  /Users/nate/code/github.com/open-source-space-foundation/proves-core-reference/fprime-venv/lib/python3.13/site-packages/fprime_gds/common/files/helpers.py:150: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    self.__start = datetime.datetime.utcnow()

Testing/Review Recommendations

This does is not expected to change any behavior and compatible with Python 3.9+ which is the stated supported versions in the pyproject.toml

Future Work

Note any additional work that will be done relating to this issue.

@thomas-bc thomas-bc merged commit a25acb7 into nasa:devel Feb 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants