From f959958e1b339ed223aef4261692196b59b93b77 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:01:33 -0800 Subject: [PATCH] Update advanced_usage.md --- docs/advanced_usage.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/advanced_usage.md b/docs/advanced_usage.md index 2fe30fee3..04626fe41 100644 --- a/docs/advanced_usage.md +++ b/docs/advanced_usage.md @@ -519,11 +519,11 @@ existing tables) with: ### Missing timezones -Django uses timezones but MySQL as well as MariaDB do not have any timezone information by default. +MySQL as well as MariaDB do not have any timezone information by default (though some +docker images such as the official MariaDB image take care of this for you) which will +cause unexpected behavior with date-based queries. -This results in not being able to filter by date ranges (i.e. using after/before in the "Created" or "Added" filters). - -To fix that, execute one of the following commands. +To fix this, execute one of the following commands: MySQL: `mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p`