set time zone
This commit is contained in:
parent
6f08bd801d
commit
dec077c863
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ export class MyCustomLogger implements Logger {
|
|||
|
||||
export const AppDataSource = new DataSource({
|
||||
type: "mysql",
|
||||
timezone: "+07:00", // กำหนดให้ใช้ Asia/Bangkok
|
||||
database: process.env.DB_NAME,
|
||||
host: process.env.DB_HOST,
|
||||
port: +(process.env.DB_PORT || 3306),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue