Wrong date when date tag is formatted
-
I have created a custom template to display upcoming events using a shortcode. In this template I formatted the date in order to include the day of the week, like this:
{date format="l j F"}
But now the dates are displayed correctly formatted, but many events display today’s date rather than the event date!?
The error appears randomly, but experimenting with several random dates indicate it only concerns certain months. I.e. dates in November, April and June all work correctly, any date set in October, January or February display today’s date.As soon as I remove the formatting all dates are correct (but obviously lacking the weekday). So there appears to be some bug with date formatting (which only affects certain months?).
How weird is that? Any ideas or solutions?
- The topic ‘Wrong date when date tag is formatted’ is closed to new replies.