Merge pull request #1910 from pmgarman/master
Coupons Expire in Local Time
This commit is contained in:
commit
20cd3f009d
|
@ -225,7 +225,7 @@ class WC_Coupon {
|
||||||
|
|
||||||
// Expired
|
// Expired
|
||||||
if ( $this->expiry_date ) {
|
if ( $this->expiry_date ) {
|
||||||
if ( strtotime( 'NOW' ) > $this->expiry_date ) {
|
if ( strtotime( current_time( 'timestamp' ) ) > $this->expiry_date ) {
|
||||||
$valid = false;
|
$valid = false;
|
||||||
$error = __( 'This coupon has expired.', 'woocommerce' );
|
$error = __( 'This coupon has expired.', 'woocommerce' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue