From 233e983da33f7ad44e98de21f6005fa377e91e55 Mon Sep 17 00:00:00 2001 From: Pierrick Voulet <6769971+PierrickVoulet@users.noreply.github.com> Date: Wed, 4 Nov 2020 16:17:38 -0500 Subject: [PATCH] Fix date range value notation This now uses 24h (instead of 12h) and specifies the timezone. --- .../AdWords/v201809/AccountManagement/GetAccountChanges.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/AdWords/v201809/AccountManagement/GetAccountChanges.php b/examples/AdWords/v201809/AccountManagement/GetAccountChanges.php index 989570733..d20cde5fc 100755 --- a/examples/AdWords/v201809/AccountManagement/GetAccountChanges.php +++ b/examples/AdWords/v201809/AccountManagement/GetAccountChanges.php @@ -74,8 +74,8 @@ public static function runExample( // Set the date time range, from 24 hours ago until now. $dateTimeRange = new DateTimeRange(); - $dateTimeRange->setMin(date('Ymd his', strtotime('-1 day'))); - $dateTimeRange->setMax(date('Ymd his')); + $dateTimeRange->setMin(date('Ymd His T', strtotime('-1 day'))); + $dateTimeRange->setMax(date('Ymd His T')); // Create selector. $selector = new CustomerSyncSelector();