Setting date and time format in the Portal

Setting date and time format in the Portal

By default, the Portal displays the date in the format dd.mm.yyyy, followed by the time in hh:mm:ss (locale en_ch). If you prefer to have dates and times in US format (where the month is displayed first), or in other kind of format specific to your region, change the locale for the Portal.

To set the locale for the Portal:

  1. Log in to the Portal appliance.
  2. Open for edition the global configuration file of the Portal:
    sudo vi /var/nexthink/portal/portal-general-config.xml
  3. Modify the user block of the configuration and set your preferred locale in the format language_locale, for instance:
    <user>
    <!--Default locale-->
    <defaultLocale>en_us</defaultLocale>
    </user>
  4. Save your changes and quit the editor by typing:
    :wq
  5. Restart the Portal to apply your settings:
    sudo service nxportal restart