Skip to content

Deprecation Warning in build_zip.py datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version #826

@guw

Description

@guw

I started to see this on MacOS Sonoma 14.3.1:

INFO: From PackageZip ...:
.../external/rules_pkg/pkg/private/zip/build_zip.runfiles/core/../rules_pkg/pkg/private/zip/build_zip.py:77: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  ts = datetime.datetime.utcfromtimestamp(ts)

Might be related to a recent brew upgrade?

Metadata

Metadata

Assignees

Labels

P2An issue that should be worked on when time is availableinternal cleanup

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions