Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#15,291 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jay23606 ci sta già lavorando.

Dal 13/10/2026.

  • #15292 di @jay23606 — aperta
  • #15353 di @tasodoufu — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Rust
Stelle
24.3k
Fork
2.1k
Merge medio
2g 15m
PR unite (30g)
320

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uutils/coreutils

Tutte le issue di uutils/coreutils

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.