Skip to content

Commit adf100e

Browse files
authored
Merge pull request #82 from dogecoinfoundation/rc-fix-timezones
Fix: postgres TIMESTAMP WITH TIME ZONE (with a space)
2 parents 663f804 + 348f869 commit adf100e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/store/sqlite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func NewSQLiteStore(fileName string) (giga.Store, error) {
146146
// }
147147
} else {
148148
setup_sql = strings.ReplaceAll(setup_sql, "INTEGER PRIMARY KEY AUTOINCREMENT", "SERIAL")
149-
setup_sql = strings.ReplaceAll(setup_sql, "DATETIME", "TIMESTAMP")
149+
setup_sql = strings.ReplaceAll(setup_sql, "DATETIME", "TIMESTAMP WITH TIME ZONE")
150150
}
151151
// init tables / indexes
152152
_, err = db.Exec(setup_sql)

pkg/webapi/webapi.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ func (t WebAPI) createInvoice(w http.ResponseWriter, r *http.Request, p httprout
155155
sendBadRequest(w, fmt.Sprintf("bad request body (expecting JSON): %v", err))
156156
return
157157
}
158-
fmt.Println(o)
159158
if o.Vendor == "" {
160159
sendBadRequest(w, "missing 'vendor' in JSON body")
161160
return

0 commit comments

Comments
 (0)