Wednesday, 29 June 2016

How to handle the timezone received via the API on reports

Hi!

I need to convert in UTC (using php) the dates and hours received from a report but I'm not sure how to manage the received "Adwords-timezones".

 

I see two ways to handle them :

 

First way:

We receive : "(GMT +02:00) Paris" : I always remove 2 hours and I don't take into account the DST of Paris?

 

Second way :

We receive : "(GMT +02:00) Paris" : I affect this to the timezone : 'Europe/Paris' and so the DST of Paris is taken into account.

 

Can you please tell me which one of these two solutions I should use ?

Or is there a third way that we are not aware of ?

 

Thanks a lot in advance for your help on this.


Best,

Dorine

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d545defc-70df-49e2-bd31-651dbdc5a165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment