Time will not read 12

jvfred
2022-05-17
2024-10-10
  • 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.

     
    πŸ‘
    2
  • 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.

     
    πŸ‘
    1
  • TPTSys - 2024-10-10

    I know this post is a bit old, but i'm having this same issue:

    At noon, %t[hh:mm:ss tt] is displaying 00:00:00 PM
    There is no text variable, just using the default functionality of the visualization for the time display.

    This is running on an IFM CR1102 display.

    has anyone solved this?

     

Log in to post a comment.