You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The date formatting is a bit naive here. It starts from both ends and finds where the dates first differ (in the rendered format). To illustrate this, if 9th May 2016 was in fact a Saturday, it would look like:
Saturday, April-May 9, 2016
So it splits the dates where they first differ going from left-to-right and right-to-left.
The bug here is that '9' here is the same for start and end date but they don't actually refer to the same 9th. I think there needs to some added logic here to the effect:
If the year differs, don't group year/month/day tokens
If the month differs, don't group month/day tokens
I have an event which begins on April 9th, and ends on May 9th. I output the date in my theme using this code:
The date is displayed like this:
Saturday, April–Monday, May 9, 2016
It should be:
Saturday, April 9–Monday, May 9, 2016
The day in the start date is missing.
The text was updated successfully, but these errors were encountered: