class DatetimeWithTimezoneTransformer implements DataTransformerInterface

Methods

array
transform(TimeDate $time)

Take a TimeDate object (with a timezone) and put its value on the time and timezone fields, so the user can see it

reverseTransform(array $data)

Take the timestamp from the time field and the timezone that the user provided and combine them into a single timezoned TimeDate

Details

at line line 16
array transform(TimeDate $time)

Take a TimeDate object (with a timezone) and put its value on the time and timezone fields, so the user can see it

Parameters

TimeDate $time

Return Value

array

at line line 35
TimeDate reverseTransform(array $data)

Take the timestamp from the time field and the timezone that the user provided and combine them into a single timezoned TimeDate

Parameters

array $data

Return Value

TimeDate