mirror of
https://github.com/restic/restic.git
synced 2026-11-21 21:12:42 +00:00
snapshots: show location name instead of current timezone (#21877)
This commit is contained in:
1 parent
650f658244
commit
0536e15bbf
2 files changed
+10
-5
No files matched your search
@@ -246,11 +246,8 @@ func PrintSnapshots(stdout io.Writer, list data.Snapshots, reasons []data.KeepRe
|
||||
// Each snapshot can be registered in different timezones,
|
||||
// but we display them all in local timezone on this output.
|
||||
footer := fmt.Sprintf("%d snapshots", len(list))
|
||||
zoneName, _ := time.Now().Local().Zone()
|
||||
if zoneName != "" {
|
||||
footer = fmt.Sprintf("Timestamps shown in %s timezone\n%s", zoneName, footer)
|
||||
}
|
||||
tab.AddFooter(footer)
|
||||
zoneName := time.Now().Local().Location().String()
|
||||
tab.AddFooter(fmt.Sprintf("Timestamps shown in %s timezone\n%s", zoneName, footer))
|
||||
|
||||
if multiline {
|
||||
// print an additional blank line between snapshots
|
||||
|
||||
Reference in new issue
Block a user