Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Bigquery Time zone configuration

Whenever using Current Date or Current Timestamp, Bigquery should automatically show values in EST. In addition, is it possible to remove the UTC suffix that gets displayed on BQ Console for each and every Timestamp Column.

Solved Solved
1 1 33.4K
1 ACCEPTED SOLUTION

BigQuery's default timezone for CURRENT_DATE() and CURRENT_TIMESTAMP() is UTC. To automatically show values in Eastern Standard Time (EST), you need to convert the timezone within your queries.

Here's how to handle the conversion:

This query converts the current timestamp to the "America/New_York" timezone (EST).

2. Remove UTC Suffix from Timestamps:

BigQuery displays timestamps with a 'UTC' suffix by default. To remove it:

 
SELECT FORMAT_TIMESTAMP("%F %T", CURRENT_TIMESTAMP(), "America/New_York") AS formatted_timestamp;

Remember:

  • Apply these conversions in each query that needs EST or specific formatting.
  • BigQuery doesn't have a global setting to enforce these changes by default.

View solution in original post

1 REPLY 1

BigQuery's default timezone for CURRENT_DATE() and CURRENT_TIMESTAMP() is UTC. To automatically show values in Eastern Standard Time (EST), you need to convert the timezone within your queries.

Here's how to handle the conversion:

This query converts the current timestamp to the "America/New_York" timezone (EST).

2. Remove UTC Suffix from Timestamps:

BigQuery displays timestamps with a 'UTC' suffix by default. To remove it:

 
SELECT FORMAT_TIMESTAMP("%F %T", CURRENT_TIMESTAMP(), "America/New_York") AS formatted_timestamp;

Remember:

  • Apply these conversions in each query that needs EST or specific formatting.
  • BigQuery doesn't have a global setting to enforce these changes by default.