1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #34070 -- Fixed date format in Now() on SQLite.

Regression in 649b28eab6.
This commit is contained in:
Mariusz Felisiak 2022-10-24 09:11:48 +02:00 committed by GitHub
parent 3283120cca
commit 577dbcbb4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ class Now(Func):
return self.as_sql(
compiler,
connection,
template="STRFTIME('%%Y-%%m-%%d %%H:%%M:%%f', 'NOW')",
template="STRFTIME('%%%%Y-%%%%m-%%%%d %%%%H:%%%%M:%%%%f', 'NOW')",
**extra_context,
)