$start = format_date( $timecode, 'custom', 'h:i:s a, d M Y', 0); <- changed variable_get() to 0
Gives me "07:00:00 am, 11 Mar 2011" <- correct time, but one day in the future
Leaving the timezone parameter off, letting it's default NULL value be used like this:
$start = format_date( $timecode, 'custom', 'h:i:s a, d M Y');
Gives me "12:00:00 am, 11 Mar 2011" <- wrong time plus one day in the future
I guess I could just use the second form, with the timezone parameter set to zero, and recommend that users include the date, but it sure is convenient to just say "12:00:00 am" and "12:59:59 pm" to capture the analytics thus far for the day.
Perhaps my date time configuration for the site is incorrect? At admin/settings/date-time I have the time zone set correctly, and user configurable timezones are enabled. BTW, the users of the site are international, with people on both east & west coast US, London, Israel, and India. So the timezone handling is important.
Sincerely,
-Blake