Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Mick. on December 13, 2020, 02:03:16 PM

Title: How to rid military time?
Post by: Mick. on December 13, 2020, 02:03:16 PM
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.
Title: Re: How to rid military time?
Post by: Aleksi "Lex" Kilpinen on December 13, 2020, 02:18:04 PM
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
Title: Re: How to rid military time?
Post by: Mick. on December 13, 2020, 02:19:23 PM
I've tried these. No change it seems
Title: Re: How to rid military time?
Post by: Aleksi "Lex" Kilpinen on December 13, 2020, 02:21:23 PM
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.
Title: Re: How to rid military time?
Post by: Illori on December 13, 2020, 02:23:11 PM
do you have a time format set in your profile?
Title: Re: How to rid military time?
Post by: Aleksi "Lex" Kilpinen on December 13, 2020, 02:23:37 PM
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
Title: Re: How to rid military time?
Post by: Mick. on December 13, 2020, 02:28:24 PM
Thanx Lex! That did it.  ;)  That was the last place I looked.
Title: Re: How to rid military time?
Post by: Aleksi "Lex" Kilpinen on December 13, 2020, 02:32:02 PM
No problem :) Glad you got your fix of confusing time formats sorted :P
Title: Re: How to rid military time?
Post by: Mick. on December 13, 2020, 02:36:50 PM
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.
Title: Re: How to rid military time?
Post by: Kindred on December 13, 2020, 08:36:00 PM
Really? I thought it was well broken out