MCPcopy
hub / github.com/pocketbase/pocketbase / SetTimezone

Method SetTimezone

tools/cron/cron.go:62–67  ·  view source on GitHub ↗

SetTimezone changes the current cron tick timezone.

(l *time.Location)

Source from the content-addressed store, hash-verified

60
61// SetTimezone changes the current cron tick timezone.
62func (c *Cron) SetTimezone(l *time.Location) {
63 c.mux.Lock()
64 defer c.mux.Unlock()
65
66 c.timezone = l
67}
68
69// MustAdd is similar to Add() but panic on failure.
70func (c *Cron) MustAdd(jobId string, cronExpr string, run func()) {

Callers 1

TestCronSetTimezoneFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCronSetTimezoneFunction · 0.64