News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to rid military time?

Started by Mick., December 13, 2020, 02:03:16 PM

Previous topic - Next topic

Mick.

My forum is stuck in military time, I've looked, changed, messed with to no actual change. Posts are marked in military time and if my life depended on it, I'd be dead lol.

Can this be a server thing? I'm just now learning how to setup 2.1.

Aleksi "Lex" Kilpinen

You can set the default time format in Admin CP.

The following characters are recognized in the format string:
  %a - abbreviated weekday name
  %A - full weekday name
  %b - abbreviated month name
  %B - full month name
  %d - day of the month (01 to 31)
  %D* - same as %m/%d/%y
  %e* - day of the month (1 to 31)
  %H - hour using a 24-hour clock (range 00 to 23)
  %I - hour using a 12-hour clock (range 01 to 12)
  %m - month as a number (01 to 12)
  %M - minute as a number
  %p - either "am" or "pm" according to the given time
  %R* - time in 24 hour notation
  %S - second as a decimal number
  %T* - current time, equal to %H:%M:%S
  %y - 2 digit year (00 to 99)
  %Y - 4 digit year
  %% - a literal '%' character

* Does not work on Windows-based servers.

By the way, if I had to live with a 12 hour clock - I'd already be dead a good few times :P
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Mick.

I've tried these. No change it seems

Aleksi "Lex" Kilpinen

That list is what is in admin.
My forum is using %a %d.%m.%Y %H:%M:%S ( Sun 13.12.2020 21:21:06 )
You would probably want to at least replace %H with %I and add %p somewhere there.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Illori

do you have a time format set in your profile?

Aleksi "Lex" Kilpinen

Quote from: Mick. on December 13, 2020, 02:19:23 PM
I've tried these. No change it seems
Check your profile, you can also override the time format in there - so if you are seeing no changes, you probably have something custom in your profile settings. ( Look and layout )

EDIT: Illori was fast I see. :P
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Mick.

Thanx Lex! That did it.  ;)  That was the last place I looked.

Aleksi "Lex" Kilpinen

No problem :) Glad you got your fix of confusing time formats sorted :P
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Mick.

Quote from: Aleksi "Lex" Kilpinen on December 13, 2020, 02:32:02 PM
No problem :) Glad you got your fix of confusing time formats sorted :P
never cared to venture into 2.1 until 2 weeks ago. Updated my 2.0 theme to work with 2.1 and what a nightmare lol.... its done but man 2.1 css file is crazy. Too many areas covered in a single class. Ugh.

Kindred

Really? I thought it was well broken out
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: