Fix DeprecationWarning in timeutils.py and archive.py

Open
#75 1 comment 0 reactions 0 assignees View on GitHub

@shashank-tomar0 is already working on this.

Since Nov 8, 2026.

  • #98 by @utkarshasinha — closed without merging
  • #111 by @shashank-tomar0 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Read commoncode/timeutils.py:61 and commoncode/archive.py:61 alongside the two warning messages, then reproduce the warnings with the project’s existing checks. Done means both warnings are addressed while preserving the intended UTC datetime and tar extraction behavior.

Written by the indexing model from the issue text.

Description

good first issue
commoncode/timeutils.py:61: 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).
  datim = dt or datetime.utcnow()
commoncode/archive.py:61: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
  tar.extractall(target_dir, members=to_extract)
Dominant language
Python
Stars
4
Forks
25
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/commoncode

All issues in aboutcode-org/commoncode

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.