aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorMicah Stetson <micah@stetsonnet.org>2012-12-29 16:51:15 -0800
committerMicah Stetson <micah@stetsonnet.org>2012-12-29 16:51:15 -0800
commit44496728c24982a76893272b23d0c7e949b5818c (patch)
tree52213678b7cff4949e39e5db8591610029f26fd3 /sqlite3.go
parentSupport time values with nanosecond precision (diff)
downloadgolite-44496728c24982a76893272b23d0c7e949b5818c.tar.gz
golite-44496728c24982a76893272b23d0c7e949b5818c.tar.xz
Support more of the timestamp formats undestood by SQLite
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 6c0fc61..0a21d23 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -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",
}