Welcome, Guest
Username: Password: Remember me

TOPIC: changing time symbols

changing time symbols 1 year 3 months ago #5757

Hello!
The timekeeping symbols "PM" & "AM" should in Swedish be "FM" and "EM"
See picture:
screencast.com/t/CVz8muuXOnXs

I do not understand where I can change this.

Can you please help me with this?
Best regards
Anders H
Sweden
The administrator has disabled public write access.

changing time symbols 1 year 3 months ago #5758

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Open the default.php file from the below path,

Root -> components -> com_jomclassifieds -> views -> user -> tmpl -> default.php

Find the below code :
$expiryDate = ( $item->expirydate == '0000-00-00 00:00:00') ? '0000-00-00 00:00:00' : JHtml::date($item->expirydate , 'D, M j, Y g:i a', null);

and add the below code after the above code :
$expiryDate = str_replace("am", "em", $expiryDate);
$expiryDate = str_replace("pm", "fm", $expiryDate);
Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Anders Hidman

changing time symbols 1 year 3 months ago #5759

Thanks for your superb support

BR
Anders
The administrator has disabled public write access.
Time to create page: 0.429 seconds