Calculagator :
The "Region" control panel allows you to change these settings. Look under Formats. The short time and long time setting should have the "tt" at the end. to display AM/PM to the right.
the "tt" is at first , hence the problem. No option is there to change the tt to the last.