public function encode($value, Field $field, Codec $codec = null)
    {
        if ($value instanceof \DateTimeInterface) {
            return $this->convertToUtc($value)->format(DateUtils::ISO8601_ZULU);
        }

        return null;
    }
public function encode($value, Field $field, Codec $codec = null)
    {
        if ($value instanceof \DateTimeInterface) {
            return $this->convertToUtc($value)->format(DateUtils::ISO8601_ZULU);
        }

        return null;
    }
{@inheritdoc}