settimezone

This commit is contained in:
kittapath 2025-03-10 11:36:55 +07:00
parent dec077c863
commit cc161d5622

View file

@ -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),