From 8a3f369b624a82a449628f5d22f87041203b8356 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 26 Jan 2023 14:09:06 +0100 Subject: [PATCH] Document that "Z" is trimmed when parsing time --- sqlite3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 9c0f4d8..89ffd7a 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -213,7 +213,8 @@ import ( // SQLiteTimestampFormats is timestamp formats understood by both this module // and SQLite. The first format in the slice will be used when saving time // values into the database. When parsing a string from a timestamp or datetime -// column, the formats are tried in order. +// column, the formats are tried in order. If the string ends with "Z", that +// suffix is trimmed before trying the formats. var SQLiteTimestampFormats = []string{ // By default, store timestamps with whatever timezone they come with. // When parsed, they will be returned with the same timezone.