Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Recurr/Weekday.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Weekday
/** @var int nth occurrence of the weekday */
public $num;

protected $days = array('MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU');
protected $days = array('SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an RFC that says what day is first ? (even if $weekday says 0 is Sunday)


/**
* @param int|string $weekday 0-6 or MO..SU
Expand Down