cancel
Showing results for 
Search instead for 
Did you mean: 

Data Time mismatch between V1 and V2 service output

Occasional Contributor

Data Time mismatch between V1 and V2 service output

Hi,

Previously I was using the constant contact V1 to get all the bounce records. Now i am moving to V2 to get all the bounce records. But when i campare the record from V1 to V2, i have found some data mismatch issue. for the same record In V1 output the Event Time is: "2015-08-13T08:49:00.000-07:00". but in V2 output the bounce date is :" 2015-08-13T15:49:00.000Z". so my question is how can i get the Event Time from V2 services.

2 REPLIES 2
Honored Contributor

Re: Data Time mismatch between V1 and V2 service output

Hello,

 

The difference you are seeing is that in V1 the timezone for the ISO-8601 timestamp is localized while in V2 all timestamps are returned as UTC. You can see the difference in bold below:

V1
2015-08-13T08:49:00.000-07:00

V2 
2015-08-13T15:49:00.000Z (Z indicates UTC)

If you do the timezone math, 15:49 (UTC) - 7 hours is 08:49, which is what the V1 API returns. Most date/time libraries handle these timestamps and will automatically handle the timezone conversions when parsing a date/time string in the format that we return.

 

If you have any questions about this, please let me know!

 

Sincerely,

Elijah G.
API Support Engineer
Occasional Contributor

Re: Data Time mismatch between V1 and V2 service output

Thanks Elijah G.