Support more of the timestamp formats undestood by SQLite

This commit is contained in:
Micah Stetson
2012-12-29 16:51:15 -08:00
parent ce139f706b
commit 44496728c2
2 changed files with 21 additions and 5 deletions

View File

@@ -46,7 +46,11 @@ import (
// datetime column, the formats are tried in order.
var SQLiteTimestampFormats = []string{
"2006-01-02 15:04:05.999999999",
"2006-01-02T15:04:05.999999999",
"2006-01-02 15:04:05",
"2006-01-02T15:04:05",
"2006-01-02 15:04",
"2006-01-02T15:04",
"2006-01-02",
}