WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] top bar showing before time (6 posts)

  1. mommysplurge
    Member
    Posted 6 months ago #

    i use topbar constantly, but haven't in a few weeks (no giveaways). my topbar started showing before the time. i schedule the topbars to match my giveaways and i have a post scheduled for 1/6 at 1300. scheduled the topbar to start at the same time and it started early. which means all the times are wrong. pushing it back by an hour didn't help. i have NEVER had this problem before!

    http://wordpress.org/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    Odd duck. I have not changed that logic.

    I did run a test on my site and it seems that something changed in how time is processed on the server.

    If you go to the Debug Tab for the TopBar with time settings, you'll see the time info for the server and for the TopBar. Here is an extract from my test site:

    Time Check:
    Server Timezone: UTC
    Current Time: 01/06/2014 17:40 (UTC)
    
    Multisite Check:
    Multisite:	 No
    
    TopBar Time Check:
    Starting Time: 01/06/2014 18:00 (UTC) - As entered: 01/06/2014 18:00

    You'll see the server time is UTC. To make the TopBar time settings work (for now), you'll need to enter the Time on the Control Tab as UTC.

    Let me know if entering the time as if you were in the UTC timezone works for you.

    I'll need to work on what changed and how to revert the plugin to use the local time for data entry.

    Bob

  3. mommysplurge
    Member
    Posted 6 months ago #

    oh yeah UTC is sucky, but i can push everything 5 hours ahead. it definitely is a new thing - as I said I've been using it! I wonder if it's only on the start time? *usually* i only schedule the end time now that i think about it?

  4. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks for your patience. I am refactoring the time processing and will have an update in a few days.

    Bob

  5. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    OK -- I think I fixed the issue. I tested all ten use cases of how someone can set the dates. I manipulated my WordPress GMT offset and also my php.ini timeszones to validate as part of the testing process.

    I also added a new comment where you enter the start/end times to show the current WordPress Server time. It helped me to figure out what time to enter in the option fields:

    You must use your WordPress Server Time when you set these options.
    When this page was rendered, the WordPress time was: 2014-01-08 21:44:21

    Would you be willing to test this out on your site? There are no changes to the backend database or tables, so it can be easy downgraded to the production version. If so, let me know a good email address and I'll shoot you over a zipped copy to install.

    Thanks,

    Bob

  6. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks for your help in testing the fix. I pushed 5.20 just now.

    Bob

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.