Opened 4 years ago

Closed 4 years ago

#1367 closed Bug (fixed)

ExampleFeedburner broken

Reported by: vipsoft Owned by:
Priority: low Milestone: Piwik 0.6.2
Component: Core Keywords:
Cc: Sensitive: no

Description

1) the service is now only available via https:

2) the "dates" parameter needs to be timezone adjusted because days begin/end at 12am CDT (GMT-5); depending on the user's timezone, GetFeedData may only return a single day of stats, resulting in:

Error fetching the Feedburner stats. Expected XML, Got:

Change History (6)

comment:2 Changed 4 years ago by halfdan

vipsoft: Regarding the timezone, shouldn't be enough to add the following lines?

$timezone = date_default_timezone_get(); // Save current timezone
date_default_timezone_set('CDT');
$yesterday = date('Y-m-d',mktime(0, 0, 0, date("m"), date("d")-1,   date("Y")));
$beforeYesterday = date('Y-m-d',mktime(0, 0, 0, date("m"), date("d")-2,   date("Y")));
date_default_timezone_set($timezone); // Restore timezone

CDT works, although it is not officialy supported according to the list of supported timezones (http://au2.php.net/manual/en/timezones.php). Alternatively we could use 'America/Chicago'.

comment:3 Changed 4 years ago by vipsoft (robocoder)

Should. Since this is an example, we should probably use this opportunity to use Piwik_Date, making any necessary changes along the way.

comment:4 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [2205]) fixes #1367

comment:5 Changed 4 years ago by vipsoft (robocoder)

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:6 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [2206]) fixes #1367 - contrary to the Awareness API docs, the feed data wasn't updated until 12 am PDT

Note: See TracTickets for help on using tickets.