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

Time will not read 12

jvfred
2022-05-17
2023-03-08
  • jvfred - 2022-05-17

    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
  • erik.gerrits - 2023-03-08

    Will this bug ever be fixed? 00:00 AM and 00:00 PM isn't the norm for the 12 hour clock.

     

Log in to post a comment.