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
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu