IraW
IraW

Reputation: 53

Why is the timezone of Connect/webhook dates not UTC?

When processing webhook posts, I see the dates are all in my (Eastern US) timezone. This is reported correctly if I apply the option to include Time Zone Information.

I can work with this, but I have a few questions:

  1. why not send in UTC, which is used consistently -- I believe -- throughout the API? (At least, the REST API)
  2. Is Time Zone Information working correctly? I ask because this report says it doesn't support fractional info, such as India's UTC+5.5 correctly.)
  3. What Time Zone is used in the webhook posts? I have changed both my personal preference and my account setting to Katmandu, but I still Eastern. (Thus, I cannot test #2 myself.)

Thank you

Upvotes: 0

Views: 430

Answers (1)

Joey Peng
Joey Peng

Reputation: 36

1.) Most datetimes coming back from API are UTC, however SOAP and Connect messages follow a hidden account setting. You will need to ask support to change it. It's called "Time Zone used for Connect and SOAP".

2.) Fractional datetimes should work fine

3.) Webhook and SOAP currently use the same time zone as mentioned above. Your UI preferences (account settings and personal preferences) that you see are aimed at UI users. Since you are an API integrator, they follow a different setting.

Upvotes: 1

Related Questions