From 981adc47ac024496dff787c7890dcbb63b35fd9b Mon Sep 17 00:00:00 2001 From: Michael Eischer <9106997+MichaelEischer@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:49:07 +0200 Subject: [PATCH] snapshots: improve wording for timezone information (#21913) --- cmd/restic/cmd_snapshots.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/restic/cmd_snapshots.go b/cmd/restic/cmd_snapshots.go index 4e56d4ea7..574a9095e 100644 --- a/cmd/restic/cmd_snapshots.go +++ b/cmd/restic/cmd_snapshots.go @@ -294,7 +294,10 @@ func PrintSnapshots(stdout io.Writer, list data.Snapshots, reasons []data.KeepRe // but we display them all in local timezone on this output. footer := fmt.Sprintf("%d snapshots", len(list)) zoneName := time.Now().Local().Location().String() - tab.AddFooter(fmt.Sprintf("Timestamps shown in %s timezone\n%s", zoneName, footer)) + if zoneName == "Local" { + zoneName = "local time" + } + tab.AddFooter(fmt.Sprintf("Timestamps shown in %s\n%s", zoneName, footer)) if multiline { // print an additional blank line between snapshots