Skip to content

Commit

Permalink
Merge pull request #82 from dogecoinfoundation/rc-fix-timezones
Browse files Browse the repository at this point in the history
Fix: postgres TIMESTAMP WITH TIME ZONE (with a space)
  • Loading branch information
tjstebbing authored Aug 17, 2023
2 parents 663f804 + 348f869 commit adf100e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/store/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func NewSQLiteStore(fileName string) (giga.Store, error) {
// }
} else {
setup_sql = strings.ReplaceAll(setup_sql, "INTEGER PRIMARY KEY AUTOINCREMENT", "SERIAL")
setup_sql = strings.ReplaceAll(setup_sql, "DATETIME", "TIMESTAMP")
setup_sql = strings.ReplaceAll(setup_sql, "DATETIME", "TIMESTAMP WITH TIME ZONE")
}
// init tables / indexes
_, err = db.Exec(setup_sql)
Expand Down
1 change: 0 additions & 1 deletion pkg/webapi/webapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ func (t WebAPI) createInvoice(w http.ResponseWriter, r *http.Request, p httprout
sendBadRequest(w, fmt.Sprintf("bad request body (expecting JSON): %v", err))
return
}
fmt.Println(o)
if o.Vendor == "" {
sendBadRequest(w, "missing 'vendor' in JSON body")
return
Expand Down

0 comments on commit adf100e

Please sign in to comment.