Skip to content

Commit

Permalink
Fixes timezone var
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther committed Oct 4, 2019
1 parent 8fbd9ef commit 18176a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/date/convert_timezone.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro convert_timezone(column, target_tz=None, source_tz=None) %}
{%- set target_tz = var("dbt_extend:time_zone") if not target_tz else target_tz -%}
{{ adapter_macro('dbt_extend.convert_timezone', column, target_tz, source_tz) }}
{%- set target_tz = var("dbt_date:time_zone") if not target_tz else target_tz -%}
{{ adapter_macro('dbt_date.convert_timezone', column, target_tz, source_tz) }}
{% endmacro %}

{% macro default__convert_timezone(column, target_tz=None, source_tz=None) %}
Expand Down

0 comments on commit 18176a8

Please sign in to comment.