HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Calendar not show 13:00-24:00

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#80391 (In Topic #16317)
Avatar

Fan in action

Clanendar time

The time on the calendar is different what we use in EU. It is 12h (1:00-12:00) hours system in ocp calendar. We have 24-hour clock in our country. Is it possible to change ocp calendar to show 24h (00:00-24:00)

Regards
Mathias
Göteborg
Back to the top
 
Posted
Rating:
#80392
Avatar

The time on the calendar is different what we use in EU

Funny that, I thought the UK was part of the EU  :lol:.

You need to edit the 'calendar' language file…

It'll let you change these strings…

Code

calendar_minute=%i:%M %p
calendar_minute_no_seconds=:00
calendar_minute_ampm_known=%i:%M
calendar_date=Y-m-d
calendar_date_verbose=l jS F Y
calendar_date_range_single=g:i a (jS)
calendar_date_range_single_long=g:i a (jS M)
calendar_day_of_month=jS
calendar_day_of_month_verbose=l jS
calendar_month_in_year=%b %Y
calendar_month_in_year_verbose=%B %Y

For the ones with the % symbols (PHP: strftime - Manual)
%i should be %H
%p should be removed

For the ones without the % symbols (PHP: date - Manual)
g should be G
a should be removed


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#80393
Avatar

Fan in action

Thank you for answer and solution. I change to this. Now its 24h. (0)1:00 to 23:00


date_withinday=%H:%M
date_withinweek_date=%a
date_withinweek_joiner=
date_withinweek_time=%M
date_regular_date=%d %B %Y
date_regular_joiner=,
date_regular_time=%H:%M
date_verbose_date=%G %d %B %Y
date_verbose_joiner=,
date_verbose_time=%H:%M
time_hour=G
time_hour_and_mins=G:i
timezone_time=G:i, l

regards
Mathias
Göteborg
Back to the top
 
Posted
Rating:
#80394
Avatar

Fan in action

Hello again Chris. I find theres was one moore thing. When i "add new event" in calendar third and fourth row "Date and time" and "End date and time" is show 12h. Have you any idea if this is possible to change to 24h too?


regards
Mathias
Göteborg
Back to the top
 
Posted
Rating:
#80395
Avatar

Community saint

Mathias said

When i "add new event" in calendar third and fourth row "Date and time" and "End date and time" is show 12h. Have you any idea if this is possible to change to 24h too?
Hi Mathias,

I think you overlooked the changes to calendar.ini that Chris suggested in his post, and only made changes to global.ini.

Have another look …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: