• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’d call that pretty super weird; I’ll certainly have to investigate it further!

    What context are you using this template in? E.g. Upcoming Events, details views, etc.

    The date would come up as today’s date if the value passed to the formatting was empty; but I’m not sure why that would happen.

    Thread Starter StickyPixels

    (@stickypixels)

    Thanks for your quick reply.

    I’m using the template in a shortcode on a standard page. This is my shortcode:

    [my_calendar_upcoming template="d4bb3aec2a2cfd199f8423df0049aba7" show_today="yes" order="asc"]

    I tried disabling all other plugins and switching templates, but the issue remains no matter what.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong date when date tag is formatted’ is closed to new replies.