set timezone to UTC -3
parent
8391173d53
commit
792bf390e7
4
main.go
4
main.go
|
|
@ -11,6 +11,7 @@ import (
|
|||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
|
|
@ -19,6 +20,9 @@ import (
|
|||
|
||||
func main() {
|
||||
|
||||
// Configures timezone
|
||||
time.Local, _ = time.LoadLocation("America/Sao_Paulo")
|
||||
|
||||
// Configures log file
|
||||
logFile, err := os.OpenFile("api.log", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue