I’m puzzled by this.
If have a time field hh:mm on my form. It’s entered by the date-time picker in 24 hr format and I need to translate this to 12 hr format
$dt= {mEvent_time_t};
echo $dt;
//$dt=‘22:33’;
$dx=date(‘h:i a’, strtotime("$dt"));
echo $dx;
As it shows no matter what I enter, it will reply 6:00 pm
Of course if I set $dt=‘22:33’ then it will reply the correct time 11:33 am
Now on some screens it works well, on some it doesn’t. I’ve been spending ages on this and I simply cannot see what I’m doing wrong…