Change the time setting for the date display

Post

Posted
Rating:
#2855 (In Topic #517)
Avatar
Standard member
Suchexperte is in the usergroup ‘Fan in action’
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.
Online now: No Back to the top

Post

Posted
Rating:
#2856
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#2857
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
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 PHP: strftime - Manual

Once you have replaced them, click save.
Online now: No Back to the top

Post

Posted
Rating:
#3225
Avatar
Standard member
Suchexperte is in the usergroup ‘Fan in action’
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?
Online now: No Back to the top

Post

Posted
Rating:
#3226
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I almost covered this in my most recent reply to you on Date format - Composr
(under the 'American' column of the dates table)

The only difference is you want to remove %o.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Vaiva, Philip, gabriel58, John Connor, amit.nigam, MVLipwig

Forum statistics:
  • 1,296 topics, 5,829 posts, 7,064 members
  • Our newest member is flour2door
Birthdays:
Back to Top