Custom fields date format not working correctly

I can reproduce this. For example, this preference:

33 PM

shows dates correctly on entry forms:

57 PM

but produces this on a viewed transaction:

21 PM