Skip to content

Commit

Permalink
py2 fix for datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed May 29, 2019
1 parent 2ef3981 commit c5707df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dbt/include/global_project/macros/etc/datetime.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
{% endmacro %}

{% macro py_current_timestring() %}
{% do return(modules.datetime.datetime.now().timestamp() | string | replace(".", "_")) %}
{% set dt = modules.datetime.datetime.now() %}
{% do return(dt.strftime("%Y%m%d%H%M%S%f")) %}
{% endmacro %}

0 comments on commit c5707df

Please sign in to comment.