AccountTimeZoneId doesn't take into account Daylight saving time

39 views
Skip to first unread message

Dzmitry Hancharou

unread,
Jun 11, 2015, 9:35:51 AM6/11/15
to adwor...@googlegroups.com
Hi,

From my account I see in Account preferences: Time zone (GMT+02:00) Berlin
But when I try getting an ad performance report, I have AccountTimeZoneId = "(GMT+01:00) Berlin"

Actually, Daylight saving time in Berlin, therefore GMT+02:00 is correct.

How to handle timezones properly?

Thanks,
Dzmitry

Anash P. Oommen (AdWords API Team)

unread,
Jun 11, 2015, 4:29:54 PM6/11/15
to adwor...@googlegroups.com, gonch...@gmail.com
Hi Dzmitry,

That's working as designed. The field doesn't automatically adjust to Daylight savings time, it simply gives you the timezone that was provided when the account was created. I'll make sure this is documented properly.

I think you could use a library like Joda (http://www.joda.org/joda-time/) to do the datetime translation for DST changes.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages