Change the time setting for the date display

Post

Posted
Rating:
#2875 (In Topic #562)
Hello, I have again a small problem. I want to change the time setting for the date display. At the moment, the output is displayed Posted 30th May 2017,9: 57 AM. I would like to have a 24-hour display, for example, May 30, 2017, 21.57. I would also like to have translated the monthly data into German. How do I make the changeover? It does not work in the translation under dates. Excuse the nervousness, but I'm a bloody beginner with Composr.

Post

Posted
Rating:
#2876
I am looking into the 24hr time for you as we speak.
The translating you can do manually:

Go to, the following in your admin area:
Home→ Admin Zone→ Style→ Choose→ Translate/re-phrase Composr

Make sure you have German in the language dropdown slected, if it's an option.

Then in language file, scroll too "dates", click on it, then click on the proceed button.
On that page you can manually translate then save.

Hope that helps.

I will get back to you regards the 24hr time.

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#2877
Ok to change the time from 12hr to 24hr format:

Go to, the following in your admin area:
Home→ Admin Zone→ Style→ Choose→ Translate/re-phrase Composr

Make sure you have German in the language dropdown slected, if it's an option.
Then in language file, scroll too "global", click on it, then click on the proceed button.

From here do a page search for:

Code

%l:%M %p

And for each each instance change it to:

Code

%H:%M

Using the : is the correct seperator for 24 hour. However you can replace : with . if you wish.

The format uses strings from 

Code (php)

  1.  


Once you have replaced them, click save.

Post

Posted
Rating:
#3220
Thanks for the help, the problem is solved now :)

Now I just want to change the date output from Posted 25th September in Posted September 25, 2017, so I just want to spend one point and not th. How do I do this and where?

Post

Posted
Rating:
#3221
Hi,

I almost covered this in my most recent reply to you on

Date format

Open Source CMS with advanced social, interactive and dynamic features. Fully flexible, themeable and extendible: suitable for building powerful websites.

View


(under the 'American' column of the dates table)

The only difference is you want to remove %o.
1 guest and 0 members have recently viewed this.