You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
created := time.Now().UTC().Format(time.RFC3339Nano)
Output in mac
2024-08-08T10:05:42.785935Z
Output in linux
2024-08-08T10:06:17.763359929Z
In the Linux output, the time is formatted using a higher level of precision, including 9 digits after the decimal point, representing nanoseconds.
Because of this, when I try connecting to my Hikvision Camera/DVR, it is throwing 401 unauthorised error.
When I changed the code to created := time.Now().UTC().Format(time.RFC3339) // removed Nano
It started working fine.
Please fix this issue, so that it works everywhere.
Thank you.
The text was updated successfully, but these errors were encountered:
In gosoap/ws-security.go
In func NewSecurity
created := time.Now().UTC().Format(time.RFC3339Nano)
Output in mac
2024-08-08T10:05:42.785935Z
Output in linux
2024-08-08T10:06:17.763359929Z
In the Linux output, the time is formatted using a higher level of precision, including 9 digits after the decimal point, representing nanoseconds.
Because of this, when I try connecting to my Hikvision Camera/DVR, it is throwing 401 unauthorised error.
When I changed the code to
created := time.Now().UTC().Format(time.RFC3339) // removed Nano
It started working fine.
Please fix this issue, so that it works everywhere.
Thank you.
The text was updated successfully, but these errors were encountered: