jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.34k stars 513 forks source link

Homogenize date (day in month) display: single or double digits #457

Open ghost opened 3 years ago

ghost commented 3 years ago

Reporting an issue

Thank you for taking an interest in rrule! Please include the following in your report:

Issue

When comparing rule.toText() and rule.all() the amount of digits given for the date (day in month) isn't the same. This is a very minor issue, but would it be possible to homogenize and have either both be in double digits, or single digits?

image

Expected Output for rule.toText(): every day until April 02, 2021 (~ approximate) Actual Output for rule.toText(): every day until April 2, 2021 (~ approximate)

RRule version: 2.2.9 Operating System: Windows 10 Timezone: UTC+1