I am getting the below error while using the DateTime class
DateTime::__construct(): Failed to parse time string (1607990400) at position 8 (0): Unexpected character
Code
// post meta returns below value
// 1607990400
$wp_timezone = get_option('timezone_string');
$timezone = $wp_timezone ? $wp_timezone : 'UTC';
new DateTime(get_post_meta($group_id, 'last_date', TRUE), new DateTimeZone($timezone));