timestamp
This commit is contained in:
parent
c042a682bc
commit
e5df3dce87
3131
assets/css/admin.css
3131
assets/css/admin.css
File diff suppressed because one or more lines are too long
|
@ -225,7 +225,7 @@ class WC_Coupon {
|
|||
|
||||
// Expired
|
||||
if ( $this->expiry_date ) {
|
||||
if ( strtotime( current_time( 'timestamp' ) ) > $this->expiry_date ) {
|
||||
if ( current_time( 'timestamp' ) > $this->expiry_date ) {
|
||||
$valid = false;
|
||||
$error = __( 'This coupon has expired.', 'woocommerce' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue