getValue()->getTimestamp(); $offset = $dateTime->getValue()->getOffset(); $timestampWithOffset = $timestamp + $offset; return date_i18n($format, $timestampWithOffset); } }