Function bwcs_start_date_in_site_timezone
Return the DateTime object that represents the subscription start date. The DateTime object is created using the next_payment for synchronized subscriptions and the start_date for non trial subscriptions. Date and the timezone of the site is then used to determine the local time. A new DateTime object is then creating using that localtime and the timezone is set to UTC, which does not affect the time.
Package: Braintree\DeprecatedFunctions
Deprecated
Located at deprecated/wcs-braintree-deprecated-functions.php
Deprecated
Located at deprecated/wcs-braintree-deprecated-functions.php
Parameters summary
WC_Subscription |
$subscription |
|
string |
$format = 'Y-m-d H:i:s' |
<ul> <li>default 'Y-m-d H:i:s'</li> </ul> |
Return value summary
DateTime
|
$date |