CHANGE: finalized timezone setup
This commit is contained in:
@@ -13,7 +13,7 @@ func OpenDatabase() (*sql.DB, error) {
|
|||||||
dbUser := helper.GetEnv("POSTGRES_USER", "arbeit_zeit")
|
dbUser := helper.GetEnv("POSTGRES_USER", "arbeit_zeit")
|
||||||
dbPassword := helper.GetEnv("POSTGRES_PASS", "password")
|
dbPassword := helper.GetEnv("POSTGRES_PASS", "password")
|
||||||
|
|
||||||
connStr := fmt.Sprintf("postgres://%s:%s@%s:5432/%s?sslmode=disable&TimeZone=Europe/Berlin", dbUser, dbPassword, dbHost, dbName)
|
connStr := fmt.Sprintf("postgres://%s:%s@%s:5432/%s?sslmode=disable", dbUser, dbPassword, dbHost, dbName)
|
||||||
return sql.Open("postgres", connStr)
|
return sql.Open("postgres", connStr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,3 +5,5 @@ POSTGRES_API_PASSWORD=password
|
|||||||
POSTGRES_PATH=../DB
|
POSTGRES_PATH=../DB
|
||||||
POSTGRES_DB=arbeitszeitmessung
|
POSTGRES_DB=arbeitszeitmessung
|
||||||
EXPOSED_PORT=8000
|
EXPOSED_PORT=8000
|
||||||
|
TZ=Europe/Berlin
|
||||||
|
PGTZ=Europe/Berlin
|
||||||
|
|||||||
Reference in New Issue
Block a user