[html-formfu] time_zone with DateTime element
rahed
raherh at gmail.com
Thu Mar 25 11:30:23 GMT 2010
Hi,
I've got a config file for DateTime element along these lines:
elements:
- type: DateTime
name: date
label: From
default_natural: now
field_order: ['day','month','year','hour']
hour:
time_zone: Europe/Berlin
I am not able to set a local hour, it's always utc time.
Getting the local hour from DateTime object is ok:
$dt = DateTime->now(time_zone = 'Europe/Berlin');
$hour = $dt->hour();
Is it possible to set the current hour?
--
Radek
More information about the HTML-FormFu
mailing list