Skip to content

Add SetLocation method to crontab#14

Open
yogisofiharja wants to merge 1 commit intomileusna:masterfrom
yogisofiharja:set_location
Open

Add SetLocation method to crontab#14
yogisofiharja wants to merge 1 commit intomileusna:masterfrom
yogisofiharja:set_location

Conversation

@yogisofiharja
Copy link
Copy Markdown

This method allow us to run cron on specific time zone. location can be set after initiating crontab.

ctab := crontab.New()
err := ctab.SetLocation("Asia/Jakarta")
if err != nil {
	return err
}

This method allow us to run cron on specific time zone.
location can be set after initiating crontab.

```
ctab := crontab.New()
err := ctab.SetLocation("Asia/Jakarta")
if err != nil {
	return err
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant