Re: datetime timezone wrong

Raviv_Erel
Level 2

datetime timezone wrong

hey,

 i am using the rest api to update lead,

i am sending this string -> 019-11-06T11:18:17+00:00

and the time is update to PST time zone , my account setting is GMT+2,

why its happen?

20 REPLIES 20
Saptarshi_Konar
Level 2

Re: datetime timezone wrong

I am also confused about the timezone.

Need clarification what is the timezone marketo is considering for rest APIs.

SanfordWhiteman
Level 10 - Community Moderator

Re: datetime timezone wrong

Are you really sending just "019", not "2019"?

Times are stored in UTC (Z). If you mean to pass UTC in your API call, include "Z", not "+00:00".

Raviv_Erel
Level 2

Re: datetime timezone wrong

2019

ok i will try

Saptarshi_Konar
Level 2

Re: datetime timezone wrong

Sanford Whiteman Have timezone related queries for bulk extract API of activity.

You can refer this - https://nation.marketo.com/thread/52253-timezone-for-bulk-export-api-of-activity 

Raviv_Erel
Level 2

Re: datetime timezone wrong

OK sent 2019-11-07T07:51:41Z and still marketo attribute datetime was with timezone -10...why is that ( rest api )

SanfordWhiteman
Level 10 - Community Moderator

Re: datetime timezone wrong

Where are you checking the field after writing it?

Are you reading it from the API (which should be in Z, exactly as written)?

Or are you talking about the token value in Velocity, which is stringified in CST for all instances but can be easily converted?

Raviv_Erel
Level 2

Re: datetime timezone wrong

talking about the value of the field....got the datetime field on a lead and want to be utc ( i am sending it utc...and it changed to pst)

SanfordWhiteman
Level 10 - Community Moderator

Re: datetime timezone wrong

We need to be very precise here. If you read the value using the API then surely you are seeing exactly what you put in, and that's "the value" (since everything else is a displayed value). Pls confirm that first, then we can continue.

Raviv_Erel
Level 2

Re: datetime timezone wrong


pastedImage_1.png

this is waht iam taking about 

this is what i sent in the api  2019-11-07T07:51:41Z

and the above its the field value