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 7 years, 11 months ago by admin.
-
AuthorPosts
-
November 15, 2011 at 9:38 pm #4780adminKeymaster
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 #38528Jerry9MemberFEATURE 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 #38529adminKeymasterWe 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 #38530AjayMemberHi,
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 #38531adminKeymasterThe 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.
-
AuthorPosts
- You must be logged in to reply to this topic.