We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default_sql_now returns CURRENT_TIMESTAMP for psql, but without specifying UTC this returns the server's local time.
default_sql_now
CURRENT_TIMESTAMP
SQLAlchemy docs recommend the following implementation for a psql utc_now():
@compiles(utcnow, 'postgresql') def pg_utcnow(element, compiler, **kw): return "TIMEZONE('utc', CURRENT_TIMESTAMP)"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
default_sql_now
returnsCURRENT_TIMESTAMP
for psql, but without specifying UTC this returns the server's local time.SQLAlchemy docs recommend the following implementation for a psql utc_now():
The text was updated successfully, but these errors were encountered: