Expire in local timezones instead of UTC (or the timezone of the server)

This commit is contained in:
Patrick Garman 2012-12-04 10:24:08 -06:00
parent 37feabd87f
commit ed9d5abfd6
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class WC_Coupon {
// Expired
if ( $this->expiry_date ) {
if ( strtotime( 'NOW' ) > $this->expiry_date ) {
if ( strtotime( current_time( 'timestamp' ) ) > $this->expiry_date ) {
$valid = false;
$error = __( 'This coupon has expired.', 'woocommerce' );
}