cloudflare / cloudflare/saffron

`DayOfWeek` uses 1-7 for Sun-Sat

Open
#19 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
249
Forks
19
PR merge metrics
No merged PRs in 30d

Description

The `DayOfWeek` implementation expects 1-7 to represent Sun-Sat: https://github.com/cloudflare/saffron/blob/bb34024be42c735a4f48e18b9eafc3aac455e9c6/saffron/src/parse.rs#L338-L352
But many Cron sources (e.g., [this one](https://www.ibm.com/docs/en/db2/11.5?topic=task-unix-cron-format)) say that 1-7 should represent Mon-Sun, and that 0 should be an additional representation for Sunday.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.