time in wrong time zone when using get
drupal stores in UTC have to convert this to current time zone

$dt=new \DateTime($changed_date, new \DateTimeZone('UTC'));
$dt-&gt;setTimeZone(new \DateTimeZone('America/New_York'));
$correct_date =  $dt-&gt;format('Y-m-d H:i:s');