Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Allen

    (@amweiss98)

    Hello
    Yes, you can but it will require changing some code in the template, but then you can save the template so you can use it again when there is an update (just go to the Template Options panel after you change the template). So, first which template are you using (e.g., default) and do you know how to edit the files so they can be changed (I’ll post the code here if you can do this).

    Best wishes,
    Allen

    Thread Starter lextof

    (@lextof)

    Thanks Allen,

    Excellent response time, I must say ??

    I think we will manage to change the files you specified. Please feel free to post the code ??

    Cheers Alex.

    Plugin Author Allen

    (@amweiss98)

    Great… go into the template that you are using, find this line:

    $readable .= ‘<span class=”date” style=”‘.$datestyle.'”>’. date_i18n(“D, M d, Y”,$items[“mystrdate”]).'</span>
    ‘;

    change to

    $readable .= ‘<span class=”date” style=”‘.$datestyle.'”>’. date_i18n(“D, d M, Y”,$items[“mystrdate”]).'</span>
    ‘;

    After you do this and are satisfied with the way it renders on your site, then save the template. You can see how this is done here:

    https://screencast.com/t/7Mh9hhJPYmT

    Let me know if this works or not.

    Best wishes,
    Allen

    Hi Allen,

    No, that did not fix the problem.
    What did fix it was changing /inc/rss_multi_importer_widget.php


    if (!empty($items["mystrdate"]) && $showdate==1){
    echo date_i18n( get_option( 'date_format' ),$items["mystrdate"]).'
    ';
    }

    I think it is better to use this
    echo date_i18n( get_option( ‘date_format’ ), xxx)
    than any other, hardcoded date format, since this gives more control to the user.

    Plugin Author Allen

    (@amweiss98)

    Hi Paul
    Thanks…that would work too (of course, if the person wants a unique way to present the date, the get_option(‘date_format’) won’t work)….anyway, since they were using this in a template, and templates can be saved, hard-coding isn’t a problem…anyway, thanks for letting us know about this alternative way to present the date in a local context.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘International date notation’ is closed to new replies.