How do I change the time zone for the Membership plugin?

I've got Membership installed on a client site, and she just let me know that she's got a coupon code active for a monthly subscription... and apparently the coupon ended 3 hours early because it shut off at midnight eastern time instead of midnight pacific time. Just confirmed the main site settings say pacific time - is there a setting in Membership I need to change to get it to stop operating in eastern time?

  • Timothy Bowers

    Hey there,

    Thanks for your question.

    Whilst we do use current_time (the WordPress way), it seems that our previous developer created coupons to use the time() function. This gets the server time rather than the WP time.

    This will be fixed in the next version.

    If you need to do this now then open:

    /membership/membershipincludes/classes/class.coupon.php

    You'll find three instances of time() which can be changed to current_time( 'timestamp', true )

    I've not tested this, so if you get any issues then please let me know and I'll review further. :slight_smile:

    Have a great day!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.