The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Data Time mismatch between V1 and V2 service output

Highlighted
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
Highlighted
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
Highlighted
Occasional Contributor

Re: Data Time mismatch between V1 and V2 service output

Thanks Elijah G.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured