Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set zfs-auto-snapshot to use UTC time for snapshots #18

Merged
merged 1 commit into from
Jun 24, 2013
Merged

Set zfs-auto-snapshot to use UTC time for snapshots #18

merged 1 commit into from
Jun 24, 2013

Conversation

hawkowl
Copy link
Contributor

@hawkowl hawkowl commented Jun 24, 2013

I ran into a bug when deploying this + Samba4 for Previous Versions to a Windows 7 client - all of the snapshots were appearing as 'Tomorrow'. It seems that Windows 7, at least, expects the date given to be in UTC. As I'm in UTC+8, this made all of the dates 8h ahead!

Just added the --utc flag to the date code there, and Windows 7 now correctly gives the date. This shouldn't affect anything else, since cron takes care of scheduling. UTC is also better idea to be storing the snapshot date in, as well.

dajhorn added a commit that referenced this pull request Jun 24, 2013
Set zfs-auto-snapshot to use UTC time for snapshots
@dajhorn dajhorn merged commit 39bce83 into zfsonlinux:master Jun 24, 2013
@dajhorn
Copy link
Member

dajhorn commented Jun 24, 2013

@hawkowl, good idea, merged, thanks.

However, to preserve default behavior for point releases, this change should be wrapped with a program option per #19.

@jbnance
Copy link
Contributor

jbnance commented Dec 22, 2017

This pull changed the default timezone from local to UTC.

I have created #77 which leaves the default as UTC but adds a program option --local-tz to allow using the local system's timezone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants