From ae65eed68d8d252a94117cb53e287594b486dca8 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Sun, 13 Jan 2019 21:58:48 +0000 Subject: [PATCH] Corrected comment in TruncTime database function. --- django/db/models/functions/datetime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/functions/datetime.py b/django/db/models/functions/datetime.py index 7dec5c6690..177715ecfa 100644 --- a/django/db/models/functions/datetime.py +++ b/django/db/models/functions/datetime.py @@ -285,7 +285,7 @@ class TruncTime(TruncBase): output_field = TimeField() def as_sql(self, compiler, connection): - # Cast to date rather than truncate to date. + # Cast to time rather than truncate to time. lhs, lhs_params = compiler.compile(self.lhs) tzname = timezone.get_current_timezone_name() if settings.USE_TZ else None sql = connection.ops.datetime_cast_time_sql(lhs, tzname)