Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExampleFeedburner broken #1367

Closed
robocoder opened this issue May 20, 2010 · 5 comments
Closed

ExampleFeedburner broken #1367

robocoder opened this issue May 20, 2010 · 5 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@robocoder
Copy link
Contributor

  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:
@robocoder
Copy link
Contributor Author

(In [2199]) refs #1367 - use https://

@halfdan
Copy link
Member

halfdan commented May 20, 2010

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'.

@robocoder
Copy link
Contributor Author

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

@robocoder
Copy link
Contributor Author

(In [2205]) fixes #1367

@robocoder
Copy link
Contributor Author

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

@robocoder robocoder added this to the Piwik 0.6.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants