Skip to content

snapshots: Show timezone in non-compact output#5588

Merged
MichaelEischer merged 1 commit into
restic:masterfrom
seqizz:g_timezoneshow
Nov 19, 2025
Merged

snapshots: Show timezone in non-compact output#5588
MichaelEischer merged 1 commit into
restic:masterfrom
seqizz:g_timezoneshow

Conversation

@seqizz

@seqizz seqizz commented Nov 6, 2025

Copy link
Copy Markdown

What does this PR change? What problem does it solve?

Restic lists snapshots in user's current timezone. It's very convenient but might be confusing in case of multiple users accessing the same repository without realizing they're on different timezones.

This change is an attempt to solve it by showing one-line information to the bottom of the snapshot list (plus, it is a best effort trying to get the timezone info, since I am not sure how reliable would this method be on non-Linux operating systems).

Was the change previously discussed in an issue or on the forum?

https://forum.restic.net/t/timezone-question/10228

Checklist

  • I have added tests for all code changes.
  • I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like the overall approach, I just have to nits commented below. Please add a short changelog entry (see changelog/TEMPLATE)

Comment thread cmd/restic/cmd_snapshots.go Outdated
Comment thread cmd/restic/cmd_snapshots.go Outdated
@seqizz

seqizz commented Nov 18, 2025

Copy link
Copy Markdown
Author

Thanks! Did the changes and added a changelog entry.

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@MichaelEischer MichaelEischer merged commit 6174c91 into restic:master Nov 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants