set timezone to UTC -3

main
Nilo Roberto C Paim 2024-03-14 18:24:52 -03:00
parent 8391173d53
commit 792bf390e7
1 changed files with 4 additions and 0 deletions

View File

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