mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2024-11-22 16:13:57 +01:00
Set the snapshots to use UTC time, which makes the date/time display correctly in Windows 7 Previous Versions.
This commit is contained in:
parent
dd27aa1c56
commit
6ea2d7f5b1
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user