feat : update config & time format adjustment

This commit is contained in:
zhangwenjian committed 2020-07-27 22:46:37 +08:00
1 parent f693ff60b2
commit 88b680aeee
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -8,3 +8,5 @@ vendor
config/settings.dev.yml
go-admin
middleware/demo.go
config/settings.dev.b.yml
temp/logs
+1 -1
View File
@@ -10,7 +10,7 @@ func TlsHandler() gin.HandlerFunc {
return func(c *gin.Context) {
secureMiddleware := secure.New(secure.Options{
SSLRedirect: true,
SSLHost: config.ApplicationConfig.Domain,
SSLHost: config.SslConfig.Domain,
})
err := secureMiddleware.Process(c.Writer, c.Request)
if err != nil {
+1 -1
View File
@@ -22,7 +22,7 @@ func StringToBool(e string) (bool, error) {
}
func GetCurrentTimeStr() string {
return time.Now().Format("2006/01/02 15:04:05")
return time.Now().Format("2006-01-02 15:04:05.9999")
}
func GetCurrentTime() time.Time {