timestamp

This commit is contained in:
Mike Jolley 2012-12-04 20:24:37 +00:00
parent c042a682bc
commit e5df3dce87
2 changed files with 2 additions and 3131 deletions

File diff suppressed because one or more lines are too long

View File

@ -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' );
}