Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  24 Hour Format in Only One Application?

    Posted 08/26/24 12:14 PM

    Is there a way to set the date/time to 24 hour format, in one application only, while keeping 12 hour format in the rest of our Maximo / Manage application.

     

    We are replacing a legacy application with Maximo functionality (custom app) and the legacy app used 24 hour. All other existing users of Maximo are accustom to 12 hour.

    Changing it globally in System Properties is not an option.

    Thanks!

     

    Bob Fyke

    Con Edison of New York

    Maximo Center of Excellence

    Ph. 917.418.6385

    https://www.linkedin.com/in/bobfyke/

     


    INTERNAL



  • 2.  RE: 24 Hour Format in Only One Application?

    Posted 08/26/24 12:47 PM

    Hi Rob,

    The 24hr format is controlled with the setting.DISPLAYTIME and the setting.PARSETIME to define how to parse it back, which is then used by the psdi.util.MXFormat class to perform the conversions.  The MXFormat class uses static member variable to hold the settings, which matters because f you were to dynamically set this value when a user opened the special app it would impact all users on the instance, which would be bad.

    You could create a non-persistent attribute and use an automation script to format the underlying value for display and update, but unfortunately the time lookup will remain with AM/PM distinction.  You would also have to manually validate user input and searching would also be problematic because the non-persistent field is non-searchable.

    I'll be interested if anyone has a better solution.

    Jason



    ------------------------------
    Jason VenHuizen
    Sharptree
    https://sharptree.io
    https://opqo.io
    ------------------------------



  • 3.  RE: 24 Hour Format in Only One Application?

    Posted 08/27/24 06:57 AM

    Thanks Jason for that detailed answer.

    Yes, also wondering if there are other options.


    INTERNAL