Return offset timestamp not utc in legacy

This commit is contained in:
Claudiu Lodromanean 2017-03-14 10:39:37 -07:00
parent 3476121709
commit 62d00ff950
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()->getTimestamp() : '' );
$value = ( $this->get_date_expires() ? $this->get_date_expires()->getOffsetTimestamp() : '' );
break;
case 'product_categories' :
$value = $this->get_product_categories();