﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37137	Replace raw SQL suggestion in TIME_ZONE docs	Jacob Walls		"Our docs counsel avoiding raw SQL usage where the ORM can do. We have old advice in the `TIME_ZONE` setting advising to use ""raw SQL"" when local time conversions are needed. I think instead we should suggest using a lightweight `Func` wrapping [https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-ZONECONVERT:~:text=The%20function-,timezone,-(zone%2C%20timestamp timezone()] to accomplish the same thing:

[https://docs.djangoproject.com/en/dev/ref/settings/#:~:text=raw%20SQL Current text]:

{{{
  Consider converting to local time explicitly with ``AT TIME ZONE`` in raw SQL
  queries instead of setting the ``TIME_ZONE`` option.
}}}"	Cleanup/optimization	new	Documentation	dev	Normal		postgresql, timezone		Unreviewed	0	0	0	0	0	0
