CHANGE: finalized timezone setup

This commit is contained in:
2025-02-22 13:36:33 +01:00
parent 4a0d3a850a
commit 04f9eb33d4
2 changed files with 3 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ func OpenDatabase() (*sql.DB, error) {
dbUser := helper.GetEnv("POSTGRES_USER", "arbeit_zeit")
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)
}

View File

@@ -5,3 +5,5 @@ POSTGRES_API_PASSWORD=password
POSTGRES_PATH=../DB
POSTGRES_DB=arbeitszeitmessung
EXPOSED_PORT=8000
TZ=Europe/Berlin
PGTZ=Europe/Berlin