Loading

DateTime field values displayed on the UI with regards to Daylight Saving Time and Viewing User's Locale

Udgivelsesdato: Sep 21, 2026
Beskrivelse

Salesforce follows industry standards to convert UTC to Local Time (based on Viewing User's Locale) when rendering and displaying a DateTime field in the UI. The value of the field displayed on the UI depends on the "Actual Value" present in this field, and the viewing User's Locale.

This value does not depend on the Day/Date on which the field was modified and will remain the same irrespective of at which time (Within DST or Outside DST) the record is being viewed.

Let's consider an example of a User having User Locale Set To: (GMT+00:00) Greenwich Mean Time (Europe/London), for which Day Time Saving is applicable:

United Kingdom Day Time Saving period in 2023, Sunday of March (March 26, 2023) at 01:00 am, and will go back by an hour at 02:00 am on the last Sunday in October (October 29, 2023)

Example: Viewing a DateTime Field Value in Salesforce

Assuming that an object has the following two DateTime Fields:

  • DateTime1__c
  • DateTime2__c

Scenario 1: Entering Values as a User with Locale (GMT+00:00) Greenwich Mean Time (Europe/London)

The following values are entered in the UI:

  • DateTime1__c = 18th Aug 2023, 14:00 (this Day/DateTime is within the UK 2023 DST period)
  • DateTime2__c = 1st Dec 2023, 14:00 (this Day/DateTime is outside DST period)

The following data is stored in the database:

  • DateTime1__c = 18th Aug 2023, 13:00 GMT+00:00:00
  • DateTime2__c = 1st Dec 2023, 14:00 GMT+00:00:00

Scenario 2: Displaying the Records as a User with Locale (GMT+00:00) Greenwich Mean Time (Europe/London)

The following data will be displayed on the UI:

  • DateTime1__c = 18th Aug 2023, 14:00
  • DateTime2__c = 1st Dec 2023, 14:00

Scenario 3: Displaying the Records as a User with Locale (GMT+00:00) Greenwich Mean Time (GMT)

The following data will be displayed on the UI:

  • DateTime1__c = 18th Aug 2023, 13:00
  • DateTime2__c = 1st Dec 2023, 14:00

If any end user wants to check whether a DateTime field value being shown on the UI is influenced by DST, they only need to check the "Actual Value" presented in the DateTime field and the Timezone of the Login User. The DateTime on which the field value was modified has neither an impact on the value displayed on the UI nor an impact on the value stored in the database.

Løsning

This article explains how Salesforce displays a DateTime field value on the UI with regards to Daylight Saving Time (DST) and the viewing user's locale.

How DateTime Values Are Displayed

Salesforce adheres to industry standards when converting UTC to Local Time (based on Viewing the User's Locale) to display the DateTime field value in UI, ensuring there are no ambiguities in this process.

To verify how a DateTime value will display for a given user, check the "Actual Value" stored in the field and the viewing user's timezone. The displayed time adjusts based on whether the value falls within or outside of the user's DST period.

Vidensartikelnummer

000397140

 
Indlæser
Salesforce Help | Article