From c2b4d6a9599b8646e48da394ec0a9758b2f1fa31 Mon Sep 17 00:00:00 2001 From: Michael Eischer <9106997+MichaelEischer@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:06:20 +0200 Subject: [PATCH] Patch release cherry-pick (#21914) --- 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 015b218cf..d272fa651 100644 --- a/cmd/restic/cmd_snapshots.go +++ b/cmd/restic/cmd_snapshots.go @@ -293,7 +293,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