opencensus-python icon indicating copy to clipboard operation
opencensus-python copied to clipboard

replace use of utcnow() with now(UTC)

Open demoray opened this issue 5 months ago • 1 comments

using utcnow generates the following warning:

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).
    ts = datetime.datetime.utcnow()

demoray avatar Jun 11 '25 14:06 demoray

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 11 '25 14:06 google-cla[bot]