Skip to content

Commit

Permalink
For PostgreSQL use "timestamp with timezone" as suggested by Joe Shaw
Browse files Browse the repository at this point in the history
on github.
  • Loading branch information
seehuhn committed Sep 8, 2013
1 parent 3aa59f8 commit e5a6512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (d PostgresDialect) ToSqlType(val reflect.Type, maxsize int, isAutoIncr boo
case "NullableBytes":
return "bytea"
case "Time", "NullTime":
return "timestamp"
return "timestamp with time zone"
}

if maxsize < 1 {
Expand Down

0 comments on commit e5a6512

Please sign in to comment.