Merge pull request #1910 from pmgarman/master

Coupons Expire in Local Time
This commit is contained in:
Mike Jolley 2012-12-04 12:23:40 -08:00
commit 20cd3f009d
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' );
}