Author Topic: input attr type time question (time list 24-hour setting)  (Read 436 times)

Maino

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
input attr type time question (time list 24-hour setting)
« on: February 28, 2024, 05:58:57 am »
input type = time or datetime-local
How do I display the time list in 24 format?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: input attr type time question (time list 24-hour setting)
« Reply #1 on: February 28, 2024, 08:14:38 am »
Time format is displayed in 12 or 24 hour depending on the operating system locale.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

Maino

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: input attr type time question (time list 24-hour setting)
« Reply #2 on: February 28, 2024, 09:42:16 am »
Is there any way to change it other than system local?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: input attr type time question (time list 24-hour setting)
« Reply #3 on: February 28, 2024, 10:46:59 am »
No, I'm afraid not.