From 5895ee989428e22aecd3d0479edd8e30d26b1272 Mon Sep 17 00:00:00 2001 From: Josh Devlin Date: Fri, 6 Aug 2021 12:09:05 -0500 Subject: [PATCH] Cast timestamps to the client's timezone. --- dbt_coding_conventions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt_coding_conventions.md b/dbt_coding_conventions.md index 17cb371..273cf23 100644 --- a/dbt_coding_conventions.md +++ b/dbt_coding_conventions.md @@ -151,6 +151,7 @@ Source models should be named `source___` (two undersco - Source models should select from [dbt sources](https://docs.getdbt.com/docs/using-sources), not directly from the source tables themselves. - Source models should alias source columns as necessary to conform to our [naming conventions](sql_style_guide.md). - Source models should perform data type corrections and simple extractions of nested scalar data. + - In source models, timezones should be cast to the timezone of the client. Where there are multiple timezones for the client, select the timezone in which most of the reporting stakeholders are based.