Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Good Morning,
I have a small problem with my Codesys HMI SL visualization. I am displaying a Date/Time in the upper corner. I have configured the time using %t[hh:mm tt] so it shows AM/PM. It works great up to 11:59AM/PM. As soon as it turns to 12:00 the hour digits display 00. The minutes read correctly. Once the time hits 1:00AM/PM the hour reads correct. It's like the hour is configured for 0-11 and not 1-12. I could be mistaken, but I thought setting it up as I have the time would be pulled from my PC clock and sync to that.
Any help would be greatly appreciated.
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good Morning,
I have a small problem with my Codesys HMI SL visualization. I am displaying a Date/Time in the upper corner. I have configured the time using %t[hh:mm tt] so it shows AM/PM. It works great up to 11:59AM/PM. As soon as it turns to 12:00 the hour digits display 00. The minutes read correctly. Once the time hits 1:00AM/PM the hour reads correct. It's like the hour is configured for 0-11 and not 1-12. I could be mistaken, but I thought setting it up as I have the time would be pulled from my PC clock and sync to that.
Any help would be greatly appreciated.
more posts ...
Will this bug ever be fixed? 00:00 AM and 00:00 PM isn't the norm for the 12 hour clock.