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
Within this method it checks if the Header property 'x-ms-date' is set.
If this is not set it is setting it to []string{time.Now().UTC().Format(http.TimeFormat)}
This is setting the value to a UTC time for the authentication, which my local Azure Storage Emulator is rejecting as my local is set to GMT and so the times are not in sync.
I cannot change my local time, not that I should, and I can see there is a check to see if it is already set. Therfore, I believe there should be some method to override/set this header.
When setting the url properties as per below:
It calls the credentials New function (azqueue/zc_credential_shared_key.go line 43).
Within this method it checks if the Header property 'x-ms-date' is set.
If this is not set it is setting it to
[]string{time.Now().UTC().Format(http.TimeFormat)}
This is setting the value to a UTC time for the authentication, which my local Azure Storage Emulator is rejecting as my local is set to GMT and so the times are not in sync.
I cannot change my local time, not that I should, and I can see there is a check to see if it is already set. Therfore, I believe there should be some method to override/set this header.
I have tried sending a request context:
I have tried setting the context with value
however, each time it gets to the check in the azqueue the header is not set.
How can I set this header value? or should there be a pull request to check this not to assume UTC and use the machine local time?
The text was updated successfully, but these errors were encountered: