Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Date Override not Functioning

Featured Lock Resolved Bug
I am trying to change the date format on K2 Items listing. I have gone into Languages: Edit Override section and when I type in K2 (or anything), I click on the button and nothing populates. So I did this manually by updating the File manually on my server. Now they show up on the list, but the date format has not changes.

Anyone ever have this issue?

Steve

7 Answers

Sifat - Staff

More than a month ago #Permalink
Hi Steve,
I found it's working in my end. https://prnt.sc/jbu2je
Would you please try that again?
1) Please go to this location components/com_sppagebuilder/addons/articles/site.php and change that like this screenshot https://prnt.sc/jbu26z
2) Please go to this file location language/en-GB/en-GB.ini then just add the marked line there
https://prnt.sc/jbu28x

Let me know if it helps.

-Thanks

Sifat - Staff

More than a month ago #Permalink
Hi,
Thanks for your query. Please go to this location to edit your date format
location: components/com_sppagebuilder/addons/articles/site.php
https://prnt.sc/jaq2kn
You can find the available formats from this location language/en-GB/en-GB.ini
https://prnt.sc/jaq2st

-Best Regards

Steve

More than a month ago #Permalink
Didn't change a thing... Still getting the same results. Please note the attached Date_01.jpg screenshot for details. This images is a list of K2 "Items" from a K2 Category.

Date_02.jpg is the correction made to the site.php file and re-uploaded to the serer.

Date_03.jpg is the Language setting...

Date_04.jpg is what I am trying to achieve when completed. I was able to get the date correct within the extension I was able to locate. Why K2 doesn't offer this feature is confusing.

Here is the link to the page I'm having issues with: http://tctrips.club/bstn/index.php/press

I am more concerned with the date format. Date placement manipulation I'm able to do.

Thank you,
Steve

Attachments (4)

  • Date01.jpg
    Date01.jpg 298.6 KB
  • Date02.jpg
    Date02.jpg 239.7 KB
  • Date03.jpg
    Date03.jpg 96.9 KB
  • Date04.jpg
    Date04.jpg 246.1 KB

Steve

More than a month ago #Permalink
HI Sifat,


Thanks for the reply.

I am not sure how how it's working on your end, I've viewed that page on 3 different browsers, two different computers and on two mobile devices and I get the same results (ex. "Written on Monday, 02 April 2018 00:00";).

I forgot to mention I am using K2, not the Article and I don't have the Articles directory within Addons directory.

Regards,
Steve

Steve

More than a month ago #Permalink
OK< finally figured out after pounding my head against the wall a few times. lol

What I did:

1) Located the correct file to format: modules/mod_k2_content/tmpl/Default/Default.php (file to format);)

2) Changed the date format to "DATE_FORMAT_LC2"

3) Deleted this code from the same line "<?php echo JText::_('K2_WRITTEN_ON'); ?>"

Reuploaed the "Default.php back up to the serer".

Hope this helps anyone else that may need or would like to change the date format in a K2 Item (article) list form.

Steve

Attachments (4)

  • Correct_Date_Format_1.jpg
    Correct_Date_Format_1.jpg 133.1 KB
  • Correct_Date_Format_2.jpg
    Correct_Date_Format_2.jpg 321.5 KB
  • Correct_Date_Format_3.jpg
    Correct_Date_Format_3.jpg 286.2 KB
  • Correct_Date_Format_4.jpg
    Correct_Date_Format_4.jpg 286.2 KB

Steve

More than a month ago #Permalink
OK, finally figured out what I needed to do. Here is what I did (Note the following screenshots):

1) Locate the file to be edited on your sever (/modules/mod_k2_content/tmpl/Default)

2) Change the date format to "DATE_FORMAT_LC2"

3) Delete the "Written On" code: <?php echo Jtext::_('K2_WRITTEN_ON'); ?>

4) Save file and re-uploaded the Default.php file to serer

That's it!

Steve

Attachments (4)

  • Correct_Date_Format_1.jpg
    Correct_Date_Format_1.jpg 133.1 KB
  • Correct_Date_Format_2.jpg
    Correct_Date_Format_2.jpg 321.5 KB
  • Correct_Date_Format_3.jpg
    Correct_Date_Format_3.jpg 286.2 KB
  • Correct_Date_Format_4.jpg
    Correct_Date_Format_4.jpg 286.2 KB


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 135
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 118
Toufiq

Toufiq

Total Accepted Answers: 65
Pavel

Pavel

Total Accepted Answers: 5
Peter Atkin

Peter Atkin

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us