Forums / Developer / Date picker (pop-up)? / Comment45021
Fraser Hore
Wednesday 21 December 2005 5:15:30 pm
I'm also using Firefox 1.5. I also tried it in IE and i tried changing the sitestyle. No luck.
I've also been trying to get the time select to work for ezdatetime. So far the best i could get was by adding:
var hour= document.getElementById("{/literal}{$attribute_base}_datetime_hour_{$attribute.id}{literal}"); var minute= document.getElementById("{/literal}{$attribute_base}_datetime_minute_{$attribute.id}{literal}"); hour.value=calendar.date.getHours(); minute.value=calendar.date.getMinutes();
This will put the right time in, but it is in single digits (e.g. 1 hour 5 minutes). So 01:05 is 1 and 5.
Any ideas on how to get the time right?
Cheers,
Fraser