updated plugin Easy Digital Downloads version 3.1.4

This commit is contained in:
2023-07-19 21:08:59 +00:00
committed by Gitium
parent a7f6efbebb
commit 9a42dc17d2
109 changed files with 12446 additions and 5563 deletions

View File

@ -283,3 +283,15 @@ function edd_get_minute_values() {
'59' => '59'
) );
}
/**
* Gets the UTC equivalent of a date in the local timezone.
*
* @since 3.1.4
* @param string $date_string The date string to convert.
* @param string $format The format to return the date in.
* @return string
*/
function edd_get_utc_date_string( $date_string = 'now', $format = 'Y-m-d H:i:s' ) {
return EDD()->utils->date( $date_string, edd_get_timezone_id(), false )->get_utc_from_local( $format );
}