Loading

NOW() and TODAY() Functions Return Datetimes in Unexpected Time Zone

Publiseringsdato: Nov 20, 2026
Beskrivelse

Using the NOW() or TODAY() function in a calculated field, Tableau Desktop may return a time that appears to be in a different time zone. Similarly, when using a relative date filter, the anchor date may not match the user’s local time zone.

The same symptom can also appear for extract-based data sources, and after a workbook or data source is published to Tableau Server or Tableau Cloud.

 

Cause

When using a live connection, Tableau Desktop sends the NOW() or TODAY() query to the underlying data source. The returned value depends on how the data source handles time and time zones.

If the data source is hosted in a different time zone, or configured to return timestamps in UTC, the result may differ from the local machine time.

For example, live connections to Redshift and PostgreSQL often return timestamps in UTC or based on the database session time zone. Tableau does not automatically adjust these values to the client machine’s local time zone.

Extract-based data sources on Tableau Server and Tableau Cloud: NOW() and TODAY() use the Site Time Zone for Extracts, which defaults to Coordinated Universal Time (UTC). This setting also applies to internal extracts that Tableau creates automatically for file-based data sources such as text files. Because of this, the values returned by NOW() and TODAY() and the relative date filter labels can differ from the user's local time. See Set the Site Time Zone for Extracts.

After publishing: if the results differ only after publishing, see Date Calculations, Filters, and Time Stamps Show Unexpected Results After Publishing.

Løsning

Option 1:

Use an extract. For more information, see Extract Your Data.

Note: When the extract is published to Tableau Server or Tableau Cloud, NOW() and TODAY() follow the Site Time Zone for Extracts (default: UTC). A Server or Site Administrator can change it as follows.

  1. Sign in to Tableau Server or Tableau Cloud as an administrator.
  2. On the target site, click Settings.
  3. In the Site Time Zone for Extracts section, select the desired time zone and click Save.

See Set the Site Time Zone for Extracts for details.


Option 2:

Use a calculation with the DATEADD() function to account for the time zone offset.

Example 1:

  • To convert UTC to PST (Pacific Standard Time), the formula: NOW()
  • Could become: DATEADD('hour', -8, NOW())

Note: During daylight savings time the time difference between UTC and PDT will be -7 hours.

Example 2:

To convert UTC to PST (Pacific Standard Time) for a relative date filter:

  1. Remove the date filter from the Filters shelf
  2. Select Analysis > Create Calculated Field
  3. In the Calculated Field dialog box that opens, do the following, and then click OK:
    • Name the calculated field. In this example, the calculated field is named "Last 3 Days Filter"
    • In the formula field, create a calculation similar to the following:

      [Date Field] >= DATEADD('day', -3, DATEADD( 'hour', -8, TODAY() ) )

  4. Drag [Last 3 Days Filter] to the Filter shelf.
  5. In the Filter dialog, check True and click OK.

 

Option 3: If the issue occurs only after publishing

See Date Calculations, Filters, and Time Stamps Show Unexpected Results After Publishing.

Note: Relative date filter labels in exported files

When a workbook is viewed in a browser, the relative date filter label uses the user's local time zone. In exported files (Download > Image or PDF), the label is rendered on the Tableau Cloud pod and uses the pod's time zone, so it can differ by up to one day from the browser view. Only the label text is affected; the underlying data remains accurate. To keep the label consistent, filter by a fixed start date and end date instead of a relative date range.

Flere ressurser

 

To voice your support for the inclusion of this enhancement in a future product release, add your vote to the following Community Idea: Timezone conversion support.

Knowledge-artikkelnummer

001473588

 
Laster
Salesforce Help | Article