Advertisement:

Author Topic: How to rid military time?  (Read 324 times)

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,377
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
How to rid military time?
« 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.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,386
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: How to rid military time?
« Reply #1 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
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.0 installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,377
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: How to rid military time?
« Reply #2 on: December 13, 2020, 02:19:23 PM »
I've tried these. No change it seems

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,386
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: How to rid military time?
« Reply #3 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.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.0 installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

Offline Illori

  • Support Specialist
  • SMF Legend
  • *
  • Posts: 52,740
Re: How to rid military time?
« Reply #4 on: December 13, 2020, 02:23:11 PM »
do you have a time format set in your profile?

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,386
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: How to rid military time?
« Reply #5 on: December 13, 2020, 02:23:37 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
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.0 installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,377
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: How to rid military time?
« Reply #6 on: December 13, 2020, 02:28:24 PM »
Thanx Lex! That did it.  ;)  That was the last place I looked.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,386
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: How to rid military time?
« Reply #7 on: December 13, 2020, 02:32:02 PM »
No problem :) Glad you got your fix of confusing time formats sorted :P
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.0 installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,377
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: How to rid military time?
« Reply #8 on: December 13, 2020, 02:36:50 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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,836
  • Gender: Male
    • Kindred-999 on GitHub
Re: How to rid military time?
« Reply #9 on: December 13, 2020, 08:36:00 PM »
Really? I thought it was well broken out
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."