Configure mobile apps to use the date/time format of mobile devices
Set the useDeviceSettingsForDateTimeFormats mobile property to True to configure the date/time fields in mobile apps to use the date/time format that is used on the mobile device.
Avant de commencer
Role required: admin
Pourquoi et quand exécuter cette tâche
The useDeviceSettingsForDateTimeFormats mobile property is available in ServiceNow® mobile app versions 18.2 and later. For more information about ServiceNow mobile app versions, see Mobile app version history for iOS and Android.
Procédure
-
Navigate to All > sys_sg_properties.list.
The Mobile Properties list appears.
- In the Mobile Properties list, select New.
-
On the form, fill in the fields.
Tableau 1. Mobile properties new record form Field Description Name Name of the mobile property record. Enter useDeviceSettingsForDateTimeFormats to make this feature configurable.
The useDeviceSettingsForDateTimeFormats property is turned off by default and you must create it on your instance to configure it. It isn't visible on the instance until you create it.
Remarque :The record name is case-sensitive and must be entered as useDeviceSettingsForDateTimeFormats.Application Application scope where the mobile property is applied. To select a different application scope, select the globe icon ( ) on the instance banner. Then select Application scope:application_scope. For information about how mobile properties are affected by application scope, see Mobile properties.
Description Description of the mobile property. Enter a description of the property. For example, Configures mobile apps to use the date/time format of the mobile device where the app runs. Type Data type of the mobile property record. Select True/False for the useDeviceSettingsForDateTimeFormats mobile property. Value Enter one of the following options:- To configure mobile apps to use the date/time format of the mobile device where the app runs, enter True.
- To use the date/time format of the mobile app and ignore the device format, enter False.
Active Whether the mobile property is activated. If the check box is cleared, the mobile property isn't activated for use. Is Public Determines whether the pre_auth property is included in the API response.
By default, this option is not selected. If you want this property included in the /pre_auth API response, select this checkbox. For more information, see Adaptive authentication events.
Mobile properties with this checkbox enabled are excluded from the /user_client API response.
Mobile App Config Mobile app configuration that you want to use the mobile property for. This setting limits the mobile property behavior to users who have access to this mobile app configuration. Other users don't have access to this mobile property and instead experience default behavior.
To enter a value, either start typing the configuration name or select the search icon (
). The search dialog box lists the configurations from which you can choose. Select a configuration for Mobile App Config.
Mobile Application Mobile application that you want to send the mobile property to. This setting limits the mobile property behavior to users who have access to this mobile app. Other users don't have access to this mobile property and instead experience default behavior.
To enter a value, either start typing the application name or select the search icon (
). The search dialog box lists the applications from which you can choose. Select an application for Mobile Application.
- Select Submit.
Que faire ensuite
After updating this property, the end user must refresh the app to get the latest feature configurations.