I have used this module for a pick-up date and time.
I've managed to get a time field and it does work...except I'm having an issue with the display of the time on the checkout confirmation page. it's showing up as this:
Desired Pick-up Date
Thursday 16 August, 20121345146906
I created a function for the time as such:
function zen_time($raw_time) {
if ( ($raw_time == '00:00:00') || ($raw_time == '') ) return false;
$hour = substr($raw_time, 11, 2);
$minute = (int)substr($raw_time, 14, 2);
$second = (int)substr($raw_time, 17, 2);
return time(TIME, mktime($hour, $minute, $second));
}
Then in the tpl_checkout_confirmation_default.php file I put
<?php echo zen_time($order->info['order_delivery_time']); ?></h4><br />
Now it IS working great for putting the time into the db. That page is the only place it shows up funky.
I know someone out there can tell me what I'm doing wrong.


Reply With Quote
