datetime timezone wrong | Community
Skip to main content
Raviv_Erel
Level 2
November 6, 2019
Question

datetime timezone wrong

  • November 6, 2019
  • 5 replies
  • 5771 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Saptarshi_Konar
Level 2
November 6, 2019

I am also confused about the timezone.

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

SanfordWhiteman
Level 10
November 6, 2019

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
November 6, 2019

2019

ok i will try

Saptarshi_Konar
Level 2
November 6, 2019

@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
November 7, 2019

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

SanfordWhiteman
Level 10
November 7, 2019

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
November 7, 2019

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
November 7, 2019

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
November 7, 2019


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

Raviv_Erel
Level 2
November 7, 2019

i will able to test it just next week...lets said i am getting the value..where else do i need to look ?

SanfordWhiteman
Level 10
November 7, 2019

Please show your account settings page.

Raviv_Erel
Level 2
November 7, 2019
English
English (United States)
(GMT+02:00) Israel Standard Time (Asia/Jerusalem) (IST)