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

[win32_event_log] stop ignoring timezone in time conversion #1370

Merged
merged 1 commit into from
Feb 12, 2015

Conversation

degemer
Copy link
Member

@degemer degemer commented Feb 12, 2015

Event log datetime standard is yyyymmddHHMMSS.mmmmmmsUUU (see https://msdn.microsoft.com/en-us/library/aa387237%28v=vs.85%29.aspx), sUUU being the offset in minutes. (and s + or -).

wmi.to_time doesn't deal with the s information, so here is a quick trick to add timezone.

Previously time was supposed to be UTC
@remh
Copy link
Contributor

remh commented Feb 12, 2015

Looks good to me!

remh added a commit that referenced this pull request Feb 12, 2015
[win32_event_log] stop ignoring timezone in time conversion
@remh remh merged commit 9df3fc7 into master Feb 12, 2015
@LeoCavaille LeoCavaille deleted the quentin/fix-win32-event-log branch February 12, 2015 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants