-
Notifications
You must be signed in to change notification settings - Fork 635
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
Support for RFC 2579 DateAndTime conversion #321
Comments
Note that if there's no timezone, we can't properly convert. |
That's true, but arguably a configuration error by the end user. If they put wrong or incomplete data in other config, we can not do anything but expose it as such. |
It's not a configuration error of the user if the device is incapable of outputting timezones. |
While that is true, the common case, in my experience with network devices, is that TZ info is optional, but always supported. |
The spec says we can basically fake it if the zone is not returned by the device. We can apply something like |
We'd have to presume UTC. |
Yes, you're right, UTC is better. I am doing some testing on my NAS server which returns no zone information, but happens to be set to UTC. |
It would be useful to convert RFC 2579 DateAndTime to a unix timestamp.
From SNMPv2-TC:
The text was updated successfully, but these errors were encountered: