Update coupon meta box with new date handling

This commit is contained in:
Claudiu Lodromanean 2017-03-13 15:06:44 -07:00
parent b018cdc037
commit 12952ebcd0
1 changed files with 1 additions and 1 deletions

View File

@ -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 ),