Skip to content

Commit

Permalink
Add 2h offset to timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend committed Aug 7, 2024
1 parent 5ae07fc commit 8952bb9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ function reportMissingEnv(name: string): never {
}

export const db = new DataSource({
type: "mysql",
host: process.env.MYSQL_HOST ?? reportMissingEnv("MYSQL_HOST"),
port: parseInt(process.env.MYSQL_PORT ?? reportMissingEnv("MYSQL_PORT")),
username: process.env.MYSQL_USER ?? reportMissingEnv("MYSQL_USER"),
password: process.env.MYSQL_PASSWORD ?? reportMissingEnv("MYSQL_PASSWORD"),
database: process.env.MYSQL_DATABASE ?? reportMissingEnv("MYSQL_DATABASE"),
type: "mysql",
host: process.env.MYSQL_HOST ?? reportMissingEnv("MYSQL_HOST"),
port: parseInt(process.env.MYSQL_PORT ?? reportMissingEnv("MYSQL_PORT")),
username: process.env.MYSQL_USER ?? reportMissingEnv("MYSQL_USER"),
password: process.env.MYSQL_PASSWORD ?? reportMissingEnv("MYSQL_PASSWORD"),
database: process.env.MYSQL_DATABASE ?? reportMissingEnv("MYSQL_DATABASE"),
timezone: '+02:00',
// synchronize: true,
// logging: true,
entities: [
Expand Down

0 comments on commit 8952bb9

Please sign in to comment.