Time in logs is 2 hours behind
I'm collecting logs using the Box API and the time in the logs is two hours behind (showing pacific time). I'm in the central region and my user account is set to the central time zone. How do I fix this?
-
Hi ,
What type of application are you using when you are trying to fetch the logs, OAuth2 or the JWT / OAuth 2 application?
I could be wrong about assumptions here without knowing more, but here's what I'm thinking: Your enterprise admin settings for users are set so that new users are automatically set to Pacific time. If you're using a JWT application and making the call from the service account of the application (for a JWT app) and not the user account that you have set to central, it's entirely possible that the logs would be coming back as pacific time.
If that might be a case you can check by trying to fetch the current user information, then check the returned timezone to see what it may be set as. If the assumptions are correct then you can update the user for the service account to set the correct timezone if you'd like.
If all of that is wrong we can dig in further if you have details about the app type and potentially the code that you're running.
Thanks,
Jon
サインインしてコメントを残してください。
コメント
3件のコメント