time
parent
bbea663825
commit
b17238f1ac
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"jannex/admin-dashboard-backend/modules/config"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
|
@ -31,11 +30,7 @@ func InitLogger() {
|
|||
}
|
||||
|
||||
func getTime() string {
|
||||
currentTime := time.Now().UTC()
|
||||
|
||||
millisecondsSinceEpoch := currentTime.UnixNano() / int64(time.Millisecond)
|
||||
|
||||
return strconv.FormatInt(millisecondsSinceEpoch, 10) + " "
|
||||
return time.Now().Format("15:04:05 02-01-2006") + " "
|
||||
}
|
||||
|
||||
func AddSystemLog(format string, v ...any) {
|
||||
|
|
Loading…
Reference in New Issue