zrepl/daemon/snapper
Christian Schwarz b9b9ad10cf
snapshotting: ability to specify timestamp location != UTC (#801)
This PR adds a new field optional field `timestamp_location` that allows
the user to specify a timezone different than the default UTC for use in
the snapshot suffix.

I took @mjasnik 's PR https://github.com/zrepl/zrepl/pull/785 and
refactored+extended it as follows:
* move all formatting logic into its own package
* disallow `dense` and `human` with formats != UTC to protect users from
stupidity
* document behavior more clearly
* regression test for existing users
2024-10-18 15:12:41 +02:00
..
snapname snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
cron_test.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00
cron.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
impl.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
manual.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00
periodic.go snapshotting: ability to specify timestamp location != UTC (#801) 2024-10-18 15:12:41 +02:00
snapper.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00
snapstate_string.go build: drop go Dep, switch to modules, support Go 1.13 2019-09-14 13:36:44 +02:00
state_string.go build: drop go Dep, switch to modules, support Go 1.13 2019-09-14 13:36:44 +02:00
util.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00