]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
correct '-' to ':' to sync regexp and storage_format (#13463)
authorSam Fletcher <147140110+sof202@users.noreply.github.com>
Tue, 28 Jul 2026 18:03:11 +0000 (19:03 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 18:03:11 +0000 (20:03 +0200)
lib/sqlalchemy/dialects/sqlite/base.py

index 0558c69df127e4508f12f1f449dffd886e5b2979..70308b43c32f0fb5019be7ae6320641d57af543c 100644 (file)
@@ -1128,7 +1128,7 @@ class DATETIME(_DateTimeMixin, sqltypes.DateTime):
             storage_format=(
                 "%(year)04d/%(month)02d/%(day)02d %(hour)02d:%(minute)02d:%(second)02d"
             ),
-            regexp=r"(\d+)/(\d+)/(\d+) (\d+)-(\d+)-(\d+)",
+            regexp=r"(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+)",
         )
 
     :param truncate_microseconds: when ``True`` microseconds will be truncated