Skip to content

Commit 39bce83

Browse files
committed
Merge pull request #18 from hawkowl/master
Set zfs-auto-snapshot to use UTC time for snapshots
2 parents dd27aa1 + 6ea2d7f commit 39bce83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event'"
504504

505505
# ISO style date; fifteen characters: YYYY-MM-DD-HHMM
506506
# On Solaris %H%M expands to 12h34.
507-
DATE=$(date +%F-%H%M)
507+
DATE=$(date --utc +%F-%H%M)
508508

509509
# The snapshot name after the @ symbol.
510510
SNAPNAME="$opt_prefix${opt_label:+$opt_sep$opt_label-$DATE}"

0 commit comments

Comments
 (0)