This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Switch for time and date display
#1
Question 

Hi Steve,

how about a switch to display the time in european format (24h) instead of am/pm?
And the same for displaying the date.

Bye
... Gert
Reply
#2

Hi,

You can customize the time and date in Layout -> Comments -> General.

If you want 24hr format, change this part:
g:ia

to:
G:i

That will output this:
9:04

Or if you want the leading zero then this:
H:i

Will output this:
09:04

Reference:
http://php.net/manual/en/function.date.php

Have you completed the interview?
Reply
#3

Shouldn't this be made more obvious? I doubt anyone who wants to use this script knows php much, so they probably wouldn't know how to use it.

I'm giving you three guesses...
Reply
#4

Hi Steven,

thanks for the quick reply. I made the change.
But I would still prefer a switch. A simple selector would do (24h = 03:10 / am/pm = 1:10pm).

Bye
... Gert
Reply
#5

Okay this will be considered.

It's important to note that the time/date can be customized in thousands of ways. If I make a switch for something, someone else will soon want another switch and another etc.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 2 Guest(s)