You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/19 07:18:51 UTC

[GitHub] [airflow] uranusjr commented on issue #21171: Airflow schedules tasks in wrong timezone with an MSSQL Metadata DB on a non-UTC server

uranusjr commented on issue #21171:
URL: https://github.com/apache/airflow/issues/21171#issuecomment-1102182947

   Yeah it seems like we need something slightly different from the implementation in SQLAlchemy-UTC.
   
   It seems like Airflow currently renders `func.now()` as:
   
   * SQLite: `CURRENT_TIMESTAMP`
   * PostgreSQL: `now()`
   * MySQL: `now()`
   * Microsoft SQL Server: `now()`
   
   I guess what we need is to change the SQL Server one to `GETDATE()`? That shouldn’t be too hard, and (I believe) SQLAlchemy lets us register the custom function to `func` as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org