- This topic has 6 replies, 5 voices, and was last updated 11 years, 7 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › date on transaction is GMT not my local time
Tagged: debug log, GMT, incorrect purchase date, time
The date on my transactions is calculated on GMT not EDT even though I have my time set in both word press and paypal as my local time. I checked the debug logs and the time is set on GMT not local time. Can this be changed or is it just something I have to live with?
If you have PHP5.1 or above on your server (which you should be using) then you can add this one line of code in the eStore plugin (“wp_eStore1.php” file) and it will change the time zone:
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:
thank you! it did the trick
Can you please tell me where in the php file noted above do I add that line?
And also, will this edit have to be made manually each time after a plugin upgrade?
Thank you,
Stephanie
Add it at the top of the “wp_eStore1.php” file (immediately after the <php?
tag). Yes, any modification you make to the plugin will need to be manually reapplied if you upgrade.
I have applied this change in my Sydney-based installation too. Have I done it correctly?
<?php
date_default_timezone_set(‘Australia/Sydney’);
if(!isset($_SESSION)){
@session_start();
}
Yes, you have done it correctly.