Expire in local timezones instead of UTC (or the timezone of the server)
This commit is contained in:
parent
37feabd87f
commit
ed9d5abfd6
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue