Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

touch -d interprets a date/time without timezone as UTC instead of local time

Open
#15,291 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@jay23606 is already working on this.

Since Oct 13, 2026.

  • #15292 by @jay23606 — open
  • #15353 by @tasodoufu — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start by tracing how touch -d parses date and time input and applies timestamps, then compare the timezone handling with GNU touch’s documented behavior. Reproduce the issue with a timezone such as Europe/Rome and a date without an explicit timezone; done means the timestamp matches the requested local time in both summer and winter.

Written by the indexing model from the issue text.

Description

U - touch
Description

touch -d with a date and time without an explicit timezone sets the
timestamp as if the time were UTC. GNU touch interprets it as local
time, as documented.

Steps to reproduce

$ timedatectl show -p Timezone
Timezone=Europe/Rome
$ touch -d "2026-08-01 12:00:00" t-rust
$ gnutouch -d "2026-08-01 12:00:00" t-gnu
$ ls -l --time-style=full-iso t-rust t-gnu

Actual result (uutils)

-rw-rw-r-- 1 user user 0 2026-08-01 14:00:00.000000000 +0200 t-rust

Expected result (GNU coreutils)

-rw-rw-r-- 1 user user 0 2026-08-01 12:00:00.000000000 +0200 t-gnu

With a winter date ("2020-01-01 12:00:00") the result is 13:00 +0100,
so the error is always the UTC offset of the given date.

Environment
  • touch (uutils coreutils) 0.10.0
  • Kubuntu 26.04 LTS, kernel 7.0.0-38-generic
  • Timezone: Europe/Rome
Dominant language
Rust
Stars
24.3k
Forks
2.1k
Avg merge
2d 15m
Merged PRs (30d)
320

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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 uutils/coreutils

All issues in uutils/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.