WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Date and time format settings ignored (6 posts)

  1. Martin Pscheidl
    Member
    Posted 4 months ago #

    Since my users are sitting in Central Europe I need another time format.
    The WordPress date and time format is not used everywhere by this plugin. Time format in event entry editor is showing am and pm. On the published event pages the time format is right (eg. 18:00 for 6.00pm) but date format is showing MMM DD which should be in my case DD. MMM. Not sure if month names are using local translation tables...

    https://wordpress.org/plugins/the-events-calendar/

  2. kaniamea
    Member
    Posted 4 months ago #

    Hi Martin,
    to show DD MMM format you can make this change in public/template-tags/general.php. Find 'same_year_format' => 'F j', it is around line 827, and change it to 'same_year_format' => 'j F'.

  3. Martin Pscheidl
    Member
    Posted 4 months ago #

    Hi Kaniamea,
    thank You for this solution. It works at the moment (until the next plugin release).
    It would be very useful when the user preferred formatting setting could be used.
    (how-to-display-date-time-with-user-preferred-formatting)

  4. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 4 months ago #

    Hi Martin,

    We are working on making The Events Calendar respect the WordPress Date Format settings completely. Thanks for your patience while we work to make our plugin more international friendly :)

    Best,
    Leah

  5. Martin Pscheidl
    Member
    Posted 4 months ago #

    Hi Leah,
    thank you for this information!
    Another remark regarding the date+time formatting:
    You are using the @ character e.g: March 20 @ 10:00 am
    This character was not existing in the European character sets until the internet age. It is accepted as a separator in email addresses, but not as an abbreviation for 'at' because the word 'at' is English, too. But this @ character is hard coded. You should add it to your translation table. In German I would prefer e.g. 17. März, 9.00 Uhr - 21. März, 17.00 Uhr
    Best,
    Martin

  6. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 3 months ago #

    Hi Martin,

    We've had that request from a few international users, and we intend to make a tutorial for changing the @ symbol. In the meantime, check out this thread for a snippet to change it :)

    Cheers,
    Leah

Reply

You must log in to post.

About this Plugin

About this Topic