details improvement and unnecessary files deletion

This commit is contained in:
yoan
2024-11-24 13:36:17 +08:00
parent 37df882ed3
commit 9ff3e22c80
57 changed files with 978 additions and 5047 deletions

View File

@@ -2,6 +2,7 @@ package app
import (
"sync"
"time"
"github.com/pocketbase/pocketbase/tools/cron"
)
@@ -13,6 +14,10 @@ var scheduler *cron.Cron
func GetScheduler() *cron.Cron {
schedulerOnce.Do(func() {
scheduler = cron.New()
location, err := time.LoadLocation("Asia/Shanghai")
if err == nil {
scheduler.SetTimezone(location)
}
})
return scheduler