Welcome, Guest
Username: Password: Remember me

TOPIC: changing time symbols

changing time symbols 4 years 2 weeks 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 4 years 2 weeks ago #5758

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 3003
  • Thank you received: 350
  • Karma: 46
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 4 years 2 weeks ago #5759

Thanks for your superb support

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

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
 
 
Copyright © 2013-2019 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.