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

date on transaction is GMT not my local time

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

  • This topic has 6 replies, 5 voices, and was last updated 12 years, 1 month ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 15, 2011 at 4:10 pm #3595
    jcapen
    Member

    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?

    June 16, 2011 at 12:32 am #33387
    amin007
    Participant

    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:

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

    June 16, 2011 at 3:10 pm #33388
    jcapen
    Member

    thank you! it did the trick

    October 10, 2011 at 4:46 pm #33389
    smulac
    Member

    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

    October 10, 2011 at 11:18 pm #33390
    admin
    Keymaster

    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.

    April 4, 2013 at 10:39 pm #33391
    wpsadmin
    Member

    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();

    }

    April 5, 2013 at 11:04 pm #33392
    admin
    Keymaster

    Yes, you have done it correctly.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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