Skip to content

ALL the aws sdk get the device time from this API(clock_gettime), right? #2267

Answered by jmklix
pppaulpeter asked this question in Q&A
Discussion options

You must be logged in to vote

This should be handled automatically for you by the sdk so you don't need to make any changes. This was fixed back in 2016:

I just pushed a fix for this. The way it works is as follows. If we recieve a signing error, we check the date header returned from the server. If it's off, we automatically adjust the clock skew and retry the request. Once it is adjusted the first time, the client will have the correct timestamp. This should happen invisibly to the user without any errors surfacing.

This is enabled with the enableClockSkewAdjustment in the client configuration, but this defaults to true. So you don't need to make any changes. Here is the code that makes the changes if you are inte…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@pppaulpeter
Comment options

@jmklix
Comment options

Answer selected by pppaulpeter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants