Skip to content

Commit

Permalink
Merge pull request zfsonlinux#18 from hawkowl/master
Browse files Browse the repository at this point in the history
Set zfs-auto-snapshot to use UTC time for snapshots
  • Loading branch information
dajhorn committed Jun 24, 2013
2 parents dd27aa1 + 6ea2d7f commit 39bce83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfs-auto-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ SNAPPROP="-o com.sun:auto-snapshot-desc='$opt_event'"

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

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

0 comments on commit 39bce83

Please sign in to comment.