Update Format

This commit is contained in:
aditya.siregar
2024-09-06 15:12:50 +07:00
parent dc2df93572
commit d458f0649d
4 changed files with 14 additions and 16 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ type Database struct {
}
func (c Database) DSN() string {
return fmt.Sprintf("host=%s port=%s dbname=%s user=%s password=%s sslmode=%s", c.Host, c.Port, c.DB, c.Username, c.Password, c.SslMode)
return fmt.Sprintf("host=%s port=%s dbname=%s user=%s password=%s sslmode=%s TimeZone=UTC", c.Host, c.Port, c.DB, c.Username, c.Password, c.SslMode)
}
func (c Database) ConnectionMaxLifetime() time.Duration {