Patch release cherry-pick (#21914)

This commit is contained in:
Michael Eischer
2026-06-24 20:06:20 +02:00
committed by GitHub
parent 437945bf90
commit c2b4d6a959
+4 -1
View File
@@ -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