pbogre / jetlog

Personal flight tracker and viewer
https://github.com/pbogre/jetlog
GNU General Public License v2.0
177 stars 7 forks source link

Allow 24-hour clock for flight creation inputs #15

Open pbogre opened 1 month ago

pbogre commented 1 month ago

for others looking into this, keep in mind that the current time input allows you to type using 24 hour format and it will automatically convert it to 12 PM in the UI (i.e., you can type 1700 and it'll become 5:00 PM)

pbogre commented 1 month ago

This issue is more complicated than I thought because HTML does not support switching to/from 24/12 hour format time inputs, which means I would need to design a whole new input type (perhaps using a select, similar to myflightradar24).

For this reason I'll delay this feature for the future.

JackBailey commented 2 weeks ago

This is fixed now right? All my times are in 24hr.

pbogre commented 2 weeks ago

This is fixed now right? All my times are in 24hr.

It's probably a locale thing that your browser is detecting.

html time inputs choose whether they want to be 24h or 12h based on the locale, i'm pretty sure. I haven't changed anything regarding this issue.