Update coupon meta box with new date handling
This commit is contained in:
parent
b018cdc037
commit
12952ebcd0
|
@ -92,7 +92,7 @@ class WC_Meta_Box_Coupon_Data {
|
|||
}
|
||||
|
||||
// Expiry date
|
||||
$expiry_date = $coupon->get_date_expires() ? date( 'Y-m-d', $coupon->get_date_expires() ) : '';
|
||||
$expiry_date = $coupon->get_date_expires() ? $coupon->get_date_expires()->date( 'Y-m-d' ) : '';
|
||||
woocommerce_wp_text_input( array(
|
||||
'id' => 'expiry_date',
|
||||
'value' => esc_attr( $expiry_date ),
|
||||
|
|
Loading…
Reference in New Issue