Use correct legacy date format

This commit is contained in:
Claudiu Lodromanean 2017-03-15 08:19:17 -07:00
parent 111246771c
commit 9703af350d
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ abstract class WC_Legacy_Coupon extends WC_Data {
$value = $this->get_usage_count();
break;
case 'expiry_date' :
$value = ( $this->get_date_expires() ? $this->get_date_expires()->getOffsetTimestamp() : '' );
$value = ( $this->get_date_expires() ? $this->get_date_expires()->date( 'Y-m-d' ) : '' );
break;
case 'product_categories' :
$value = $this->get_product_categories();