Order by date format d-m-Y

Home \ forums/topic \ Order by date format d-m-Y

Support Home Page Forums Joomla Software Easy Folder Listing Pro Plugin Order by date format d-m-Y

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #201
    Mori1983
    Participant

    Good morning, im using easy Folder Listing Pro on my webpage and its amazing.

    I am very grateful about it, but I have a problem. When I order by date with format Y-m-d it works perfect but when I change the format to d-m-Y it orders first by day, month and finally year. So, if I have two files (A with date 23-02-2013 and B with date 12-08-2013) and order them by date descending, date A appears before date B.

    I would like to know if there is any way to do it work as I want or, if its necessary, where are placed the files which I have to modify in order to do it myself.

    Sorry about my bad english, but im spanish and I dont use it a lot. I hope that I explained the problem well.

    Thanks ^^

    #1346
    Mori1983
    Participant

    I’m using Easy Folder Listing Pro v1.5

    #1347
    Mori1983
    Participant

    Hi all, I’ll respond to myself in order to help if someone have de same problem I had.

    I’ve edited the /joomla/plugins/content/easyfolderlistingpro.php file, only the way it shows the date. This way, it still orders by Y-m-d but it shows d-m-Y.

    In line 787 I replaced

    $html .= $rows[$i];

    by

    $pieces = explode(“-“, $rows[$i]);

    $day = explode(” “, $pieces[2]);

    $html .= $day[0].”-“.$pieces[1].”-“.$pieces[0].” “.$day[1];

    So now it shows Day-Month-Year Hour:Minute:Second

    Thank you all ^^

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Order by date format d-m-Y’ is closed to new replies.