$timestampAttribute public property
The name of the attribute to receive the parsing result. When this property is not null and the validation is successful, the named attribute will receive the parsing result.
This can be the same attribute as the one being validated. If this is the case, the original value will be overwritten with the timestamp value after successful validation.
Note, that when using this property, the input value will be converted to a unix timestamp, which by definition is in UTC, so a conversion from the input time zone to UTC will be performed. When defining $timestampAttributeFormat you can control the conversion by setting $timestampAttributeTimeZone to a different value than 'UTC'
.
See also:
public string $timestampAttribute = null
Please login to continue.