Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Setting a Different Timezone for Time Calculation in the Plugin

by

Tips and Tricks HQ Support Portal › Forums › General Stuff › Instructions/F.A.Q › Setting a Different Timezone for Time Calculation in the Plugin

Tagged: auto upgrade time, change timezone, local timezone, set different timezone, timezone setting

  • This topic has 4 replies, 3 voices, and was last updated 8 years, 5 months ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 15, 2011 at 9:38 pm #4780
    admin
    Keymaster

    Update: There is now a settings option for WP eStore and the affiliate plugins for this.

    Go to the advanced settings of the plugin then check the “Use WordPress Timezone” option.

    There is now an option for this in the eMember general settings for the WP eMember plugin.


    By default the plugin will use GMT time for all things related to time (this helps with international users). However if you want the plugin to use a different timezone then do the following:

    Add the following line of code in the corresponding plugin’s file:

    date_default_timezone_set('America/New_York');

    Obviously you will need to change “America/New_York” with your preferred timezone. You can get the supported timezone value from this page:

    http://www.php.net/manual/en/timezones.php

    Which File to Modify for Which Plugin

    WP eStore – “wp_eStore1.php” file.

    WP eMember – “wp_eMember1.php” file.

    WP Affiliate Platform – “wp_affiliate_platform1.php” file.

    May 17, 2016 at 9:57 pm #38528
    Jerry9
    Member

    FEATURE REQUEST

    I would request that you provide a plugin setting that allows us to set the timezone to be the same as what our WordPress installation is set to (“Settings > General > Timezone.”) Similar to what you provide in the affiliate addon: https://support.tipsandtricks-hq.com/forums/topic/the-time-and-date-of-my-affiliate-reports-seem-to-be-off#post-16481

    QUESTION

    Nonetheless, please tell us, in the file, “wp-eMember1.php”, WHERE do you suggest we place the function call, “date_default_timezone_set(‘America/New_York’);”?

    I will try just placing it at the top of the file, under <?php of course.

    ( Note: I’m assuming it is a function call, yet I cannot find its function definition in any of the wp-eMember plugin files – Oh, it’s a core wordpress function:

    https://core.trac.wordpress.org/ticket/11672

    https://core.trac.wordpress.org/ticket/11665 )

    FEATURE REQUEST

    When viewing the member list, please also add the TIME, not just the date, to the status column of when a user logged in. Is there another place we can look that up in wp-eMember (I don’t believe the server logs tell us if they were logged in, only that they visited the page?)

    May 18, 2016 at 5:19 am #38529
    admin
    Keymaster

    We already have settings option for this in eStore and the affiliate plugin. I will add one for eMember also.

    December 15, 2016 at 10:41 am #38530
    Ajay
    Member

    Hi,

    All of my members are in the UK. Everyone’s membership level should have upgraded today but it is 10:30 and they haven’t upgraded yet. I’ve just found this post and have selected the “Use WordPress Timezone” option in eStore and eMember, will the membership levels now upgrade at midnight for the next upgrade? Or is the auto upgrade time based on something else?

    Also I will manually upgrade people now as I have already have had people asking my why they can’t access the new information.

    Thanks

    December 16, 2016 at 12:10 am #38531
    admin
    Keymaster

    The auto upgrade using WordPress’s cronjob. WordPress triggers the cronjob 24 hours from the time the plugin was activated.

    If you need the cronjob to run at midnight then deactivate then re-activate the plugin at midnight so the cronjob can trigger from that time.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ