[ 
https://issues.apache.org/jira/browse/AIRFLOW-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322803#comment-16322803
 ] 

ASF subversion and git services commented on AIRFLOW-1930:
----------------------------------------------------------

Commit d9bbb63120d71feae5c65f73eeb81ee978a272d8 in incubator-airflow's branch 
refs/heads/master from [~bolke]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=d9bbb63 ]

[AIRFLOW-1930] Convert func.now() to timezone.utcnow()

func.now() defaults to the timezone of the
database,
we assume that everything is in UTC which might
not be
the case if func.now() is used.

Closes #2882 from bolkedebruin/AIRFLOW-1930


> start_date and execution_date should default to timezone.utcnow() not to 
> func.now()
> -----------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1930
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1930
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.9.0, 1.8.2
>            Reporter: Bolke de Bruin
>            Assignee: Bolke de Bruin
>             Fix For: 1.10.0, 2.0.0
>
>
> func.now() defaults to the time zone of the database, while we assume every 
> date in the db is UTC. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to