I am getting the same problem and it looks like a bug.
I am getting the timezone dynamically through my clients account and asking the daily report using the transformed date.
It works for
Europe/London
It works for
America/Sao_Paulo
BUT,
Strangely enough, I have another campaign with
America/Sao_Paulo
And I am getting the error.
Below are the parameters I am using. Both at the same account, so the same America/Sao_Paulo timezone.
While the first works, the second gives me:
Expected start_time to be precisely aligned at midnight in timezone America/Sao_Paulo for granularity Some(DAY), got “2015-05-22T02:00:00Z”
//this works
[params] => stdClass Object
(
[start_time] => 2014-12-31T02:00:00Z
[end_time] => 2014-12-31T23:59:59Z
[account_id] => qfd7iv
[granularity] => DAY
[campaign_id] => 1y3wn
)
//this does not work. strangely, [campaign_id] is not returned when an error occur ( '1jvb5' on this call )
[params] => stdClass Object
(
[start_time] => 2015-05-22T02:00:00Z
[end_time] => 2015-05-22T23:59:59Z
[granularity] => DAY
[account_id] => qfd7iv
)
I have a feeling that campaigns created on Energy Saving time will fail to match when we are evaluating the timezone programatically on a non Energy Saving time. And vice versa. I am saying this because right now in Brazil we are 2 hours difference from London. We are in Energy Saving time.