settimezone
This commit is contained in:
parent
dec077c863
commit
cc161d5622
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ export class MyCustomLogger implements Logger {
|
|||
|
||||
export const AppDataSource = new DataSource({
|
||||
type: "mysql",
|
||||
timezone: "+07:00", // กำหนดให้ใช้ Asia/Bangkok
|
||||
extra: {
|
||||
timezone: "Asia/Bangkok", // Set to Bangkok timezone
|
||||
},
|
||||
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