• Resolved alexlii

    (@alexlii)


    Hello,

    For example, I just want to output the events before 2018-12-30, so I input 2018-12-30 into the shortcode as below:
    Here is my shortcode:

    [events-calendar-templates template=”classic-timeline” category=”all” date_format=”default” start_date=”” end_date=”2018-12-30″ limit=”100″ order=”ASC” hide-venue=”no” time=”future” title=””]

    but it still output events in 2019, I check my time setting both in The events and wordpress as the screenshot:https://prntscr.com/lx9kbw

    would you please let me know what I missed or there is bug please?

    Thanks and have a nice day

    PS: TEST IT ON A SUBSITE OF MULTISTE.

    • This topic was modified 5 years, 11 months ago by alexlii.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alexlii

    (@alexlii)

    By the way, is there a way to set pagination by shortcode please?

    Plugin Author CoolHappy

    (@narinder-singh)

    Hi there,
    We have integrated date format settings in Gutenberg block. Please just update your plugin and use it.And let me know if you are still facing any problem.

    Hello CoolHappy,

    here we encoutered the same problem too. The time format is not changed after I updated it in the setting.

    update: I figured out if I chose in Setting “date without year” and write the shortcode with year it works…
    I also saw in one of the php files, the dateformat default setting is “$use_yearless_format”. I assume that is where the problem is?

    • This reply was modified 5 years, 9 months ago by hsu444.

    Hi @hsu444,

    Date Format option is working fine in our plugin.
    Please make sure you are using our plugin (The Events Calendar Shortcode and Templates) because there is no option named as “date without year” in our plugin and also no such code “$use_yearless_format” in any file.

    Thanks

    Hallo @baljitdhanjal ,
    I saw it under the-events-calendar/src/views/blocks/event-datetime.php
    and there is such code:
    $date_format = tribe_get_date_format( $use_yearless_format )

    Is it not from your plugin?

    Hi @hsu444,

    You are checking The Events Calendar(By Modern Tribe, Inc.) plugin, this is not our plugin.
    Our plugin’s name is The Events Calendar Shortcode and Templates.

    Please let us know if you have any query regarding our plugin(The Events Calendar Shortcode and Templates).

    Thanks

    @baljitdhanjal
    Oh! I am really sorry for my fault…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘What is right time format in Shortcode?’ is closed to new replies.