WordPress.org

Ready to get started?Download WordPress

Forums

Pushover Notifications for Jetpack
[resolved] Stats notifications are worthless after moving to summer time (13 posts)

  1. yoramzara
    Member
    Posted 1 year ago #

    Until a week ago stats notification would be sent to the app at 23:00 Israeli time with valuable data. Summer time started here a week ago. Ever since then I am getting the notifications at 00:01. The stats I get is 0 views. I guess this is because that is the amount of visitors between 00:00 to 00:01. The site has 2000 visitors per day. Currently the notifications are useless. I tried deleting the plugin and installing it again. It did not help. Can you please fix this?

    http://wordpress.org/extend/plugins/pushover-notifications-for-jetpack/

  2. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Yoramzara,

    I will see if I can get this into a fix. The issue you are running into is that it's calculating the traffic, after midnight...prior to the time changes for DST, 11pm was the scheduled time. I do have something to calculate the timezones, however this is one of the more difficult things to work with, give me a bit to try and fix it.

    I'll have to try and mimic a timezone change with DST.

    Sorry about this, and thanks for the detailed report.

  3. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Quick Question,

    are you using a specific city in the timezone? or are you stating the +/- Timezone in the Settings->General of WordPress wp-admin?

  4. yoramzara
    Member
    Posted 1 year ago #

    Jerusalem. The last days the notification came exactly at 00:00 so I got good stats. If it comes at 00:01 I get none.

  5. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    @yoramzara,

    that's what I would expect from this bug. the code pulls "today's" stats, but the CRON schedule doesn't really pick up on DST changes. I've pushed a DEVELOPMENT version to SVN if you wouldn't mind installing that version and trying it out for a few days? It's difficult to replicate some of the timezone issues and I'd appreciate your help in making sure I've done it correctly.

    http://downloads.wordpress.org/plugin/pushover-notifications-for-jetpack.zip

    This is the .zip of the dev version. If this works out for you I'll make it the stable.

    Thanks again!,
    Chris

  6. yoramzara
    Member
    Posted 1 year ago #

    I installed the plugin. I will keep you posted. In how many days do you want me to report?

  7. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the delay, a day or two should be fine. I've asked a few people to try it out for me. If you have any issues with it leave the notes here and I'll see what I can do to fix it up for you. I tried to do this by assigning the timezone to Jerusalem, and it all looked fine, but I've found that sometimes real-world data is much better than my local sandbox for validation.

  8. yoramzara
    Member
    Posted 1 year ago #

    I got 0 again

  9. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    @yoramzara

    Ok, and this ran at 00:01 again? After midnight your local time? Sorry for the delay in getting this fixed, between having to wait for the cron to run and our time differences it lends to some delays. I really appreciate you taking the time to help me out.

    I'm going to continue to look into this as well. Still trying to find a good solution to scheduled events and DST observation.

  10. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I've pushed another development version of the plugin, please go try and install that version (should be 1.0.2.1). Let that run for a day or two and let me know.

    I changed my direction at attempting to get stats and looks like there are a few more arguments available from the Jetpack stats module now.

  11. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Have you had any luck trying this out? I want to release this fix ASAP if it's good to go.

    Thanks, Chris

  12. yoramzara
    Member
    Posted 1 year ago #

    I installed it 3 days ago. So far so good.

  13. Chris Klosowski
    Member
    Plugin Author

    Posted 1 year ago #

    Great! Thanks for testing that out. I'll go ahead an push the new version as the stable.

    I really appreciate your help in narrowing down and fixing this bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.