Permalink
Browse files

Set the snapshots to use UTC time, which makes the date/time display …

…correctly in Windows 7 Previous Versions.
  • Loading branch information...
1 parent dd27aa1 commit 6ea2d7f5b1d72ca796b8c184e19ffd85b2bef7b1 @hawkowl hawkowl committed Jun 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/zfs-auto-snapshot.sh
View
@@ -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}"

0 comments on commit 6ea2d7f

Please sign in to comment.