sapphiredev / utilities

Common JavaScript utilities for your TypeScript projects
https://www.sapphirejs.dev/
MIT License
157 stars 39 forks source link

request: timezone support in `Cron` #450

Open kyranet opened 2 years ago

kyranet commented 2 years ago

Is there an existing issue or pull request for this?

Feature description

Currently, Cron supports only UTC, however, it could be adapted to support various timezones, even local time.

Desired solution

Implement a way to define the timezone offset, this can be a function so we can calculate it in case a timezone's offset changes due to DST.

In the future, we can add support for Temporal.TimeZone.

Alternatives considered

N/a.

Additional context

No response

legendhimself commented 2 years ago

I am working on this

favna commented 1 year ago

Unassigned because @legendhimself hasn't delivered so it's open for grabs again