summaryrefslogtreecommitdiff
path: root/django/db/models/functions/datetime.py
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-01-13 21:58:48 +0000
committerTim Graham <timograham@gmail.com>2019-01-14 13:02:58 -0500
commitae65eed68d8d252a94117cb53e287594b486dca8 (patch)
tree0603c9bcb35f5bfdab41f3636439c5443629f3b3 /django/db/models/functions/datetime.py
parent0d7ba0ff8bb157f6646c1836cc1c658171e7674c (diff)
Corrected comment in TruncTime database function.
Diffstat (limited to 'django/db/models/functions/datetime.py')
-rw-r--r--django/db/models/functions/datetime.py2
1 files changed, 1 insertions, 1 deletions
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)