allow sale price to 23:59:59 on last sale date

This commit is contained in:
Ron Rennick 2018-12-10 10:37:13 -06:00
parent b8d635a29c
commit b6c614c2af
1 changed files with 1 additions and 1 deletions

View File

@ -1486,7 +1486,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
$on_sale = false;
}
if ( $this->get_date_on_sale_to( $context ) && $this->get_date_on_sale_to( $context )->getTimestamp() < current_time( 'timestamp', true ) ) {
if ( $this->get_date_on_sale_to( $context ) && $this->get_date_on_sale_to( $context )->getTimestamp() + DAY_IN_SECONDS < current_time( 'timestamp', true ) ) {
$on_sale = false;
}
} else {