about sqlite3 time format #556

Closed
opened 2017-03-30 03:00:22 +00:00 by haorendashu · 1 comment
haorendashu commented 2017-03-30 03:00:22 +00:00 (Migrated from github.com)

why engine.dialect.DBType() == "sqlite3" use v = t.UTC().Format("2006-01-02 15:04:05") to format Time ?

See https://github.com/go-xorm/xorm/blob/master/engine.go#L1538

why ``` engine.dialect.DBType() == "sqlite3" ``` use ``` v = t.UTC().Format("2006-01-02 15:04:05") ``` to format ``` Time ``` ? See https://github.com/go-xorm/xorm/blob/master/engine.go#L1538
fuxiaohei commented 2017-03-30 03:07:39 +00:00 (Migrated from github.com)

sqlite3 only doesn't save timezone in datetime. So save utc time string to text

sqlite3 only doesn't save timezone in datetime. So save utc time string to text
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#556
No description provided.