flightaware / dump978

FlightAware's 978MHz UAT demodulator
BSD 2-Clause "Simplified" License
40 stars 16 forks source link

Skyview: Non-ambiguous date and time formats #6

Closed varnav closed 5 years ago

varnav commented 5 years ago

This will eliminate ambiguity, while still keeping US folk happy, because currently looking at date like 05/04/2019 no one can tell if it is April on May without additional context (like what browser language is set, what os locale is set, what the software respects - OS locale or browser locale, etc.). And even then don’t assume anything. Good example is my setup, I am US resident and you would expect MM/DD/YYYY on my computers but you will be wrong, as I have my OS locales set to en_GB because that means more internationally compatible date and time formats everywhere. Also I’m from Russia and “middle endian” date breaks my brain everytime.

Date will be:

May 4, 2019, 14:07:59 - for US locale 4 May 2019, 14:07:59 - for GB locale

I think it's a good compromise. Other option is to solely use ISO 8601 without taking any locales into account.

mutability commented 5 years ago

Currently skyview in dump978 is a straight copy of the dump1090 version, can you raise this against the dump1090 repo?

varnav commented 5 years ago

Done

https://github.com/flightaware/dump1090/pull/45

mutability commented 5 years ago

Thanks. I'll close this one out and dump978 will pick up changes when the dump1090 version changes (eventually it'll live in a single place, but we're not there yet).