This commit is contained in:
Simon Ser 2024-10-01 13:24:57 +09:00 committed by GitHub
commit ad08b07ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ import (
// SQLiteTimestampFormats is timestamp formats understood by both this module // SQLiteTimestampFormats is timestamp formats understood by both this module
// and SQLite. The first format in the slice will be used when saving time // 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 // 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{ var SQLiteTimestampFormats = []string{
// By default, store timestamps with whatever timezone they come with. // By default, store timestamps with whatever timezone they come with.
// When parsed, they will be returned with the same timezone. // When parsed, they will be returned with the same timezone.