allow sale price to 23:59:59 on last sale date
This commit is contained in:
parent
b8d635a29c
commit
b6c614c2af
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue