Problem/Motivation
When "Date format for exception day" is set to anything other than "Default long date" it is displayed like this: 05America/New_York090000000005
Steps to reproduce
Set "Date format for exception day" to anything else
Proposed resolution
My guess is that it's not finding the format string correctly.
Also, when the exception date doesn't have any times (it's closed on that day), it shows still shows a time as midnight "Friday, May 9, 2025 - 12:00am"
Comments
Comment #3
johnvIndeed. Above patch should do the trick.
Comment #5
troybthompson commentedThis solved the problem, thank you! It still shows midnight (even if there are hours for the exception) but if the format chosen doesn't show time, it's ok. Maybe a different issue.
Comment #6
johnvNice.
" It still shows midnight (even if there are hours for the exception) " Can you share a screenprint of this?
Comment #7
johnvThe second commit was needed because both 'short' and 'long' are valid options for 'time'/'weekday' and 'date'.
And Exceptions need both:
- weekday on widget,
- date on formatter.
So I needed to break this apart, and move the 'weekday' to Slot.php, since that class is bey definition in the widget, and the value is used per slot, not per day, as in the formatter.