I am working on a piston converting a local string variable to a global time variable…
and it works correctly for all times except in the noon and midnight hour.
Here is a working example:
ie: (expression) string(time('11:09 pm')) »»» (string) 11:09:00 PM CST
(notice both my input and the output are PM)
The bug happens when doing this on any time that is in the 12 o’clock hour:
ie: (expression) string(time('12:09 pm')) »»» (string) 12:09:00 AM CST
ie: (expression) string(time('12:09 am')) »»» (string) 12:09:00 PM CST
(Notice the AM & PM got switched in the output.)
Is there an easy solution for this?
Thanks in advance