Re: system-config-date?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 08/24/2018 01:34 PM, Adam Williamson wrote:
On Fri, 2018-08-24 at 12:00 -0400, Robert Moskowitz wrote:
You have to know the format of the zoneinfo directory for this to work.
Like start with Am to get American cities.  Not start with H for
Helsinki; all you get is Hongkong and HST.

And you have to know a city in the list near where you are.  Many times
my city is not included.  Well we 'know' that San Diego and San
Francisco are in the same zone as Los_Angeles.  But this is all stuff
you have to figure out for yourself when the list comes up. s-c-d is
very good at showing you a city near where you are looking for...

Mostly it works.  There have been a few times I have been challenged and
had to look at my phone to confirm the timezone.  Just a few. ;)
The zoneinfo/tzdata database is not formatted for human use. The way it
was explained to me one time, the basic principle is that an entry is
added to it any time some kind of new timezone definition or DST
variation or something happens, associated with the largest or most
prominent city related to that event, and these entries are never
removed (so the database acts as a record of *historical* as well as
*current* timezone variations).

This is basically why it has such an apparently-quixotic set of cities
in it, and explains a lot of the "why X but not Y?" questions -
basically because X at *some* point did something which was not yet
recorded in the zoneinfo database, but Y never did.

IMBW, that's just my memory of how it was explained to me. But
basically, it's *not* a big list of Cities You Might Possibly Know
About and the timezones they're currently in, but it looks sufficiently
*like* one that GUI apps often just take its city list and let you
search it, or something like that.

AIUI again, the way GNOME does it better is using libgweather:

https://gitlab.gnome.org/GNOME/libgweather

which has a gigantic database mapping cities (and other 'locations',
like airports and stuff) to tzdata timezones. That's why you can look
up just about anywhere in GNOME and find the time there, or set your
time for that place:

https://gitlab.gnome.org/GNOME/libgweather/tree/master/data

I don't know how heavy libgweather's deps are, but it'd probably be a
good idea for KDE and Xfce to consider using it to do something similar
to GNOME, or perhaps for the data to be split out if libgweather's deps
are inappropriately heavy just for this purpose...
Which is probably why Menominee, MI is in from back when the Michigan Upper Peninsula was split between Eastern and Central. Menominee is west of Gary Indiana and it was pretty bad up there during double daylight days.  I remember the news, including the children hit by cars in the dark on their way to school.

Anyway, Adam, thanks for the historical reference.  I have forwarded this missive to the Xfce list and see what comes of it.  At times I think about where I left coding and what I might be contributing today if I did code.  Never learned C; only exposed to B on Honeywells.  Lots of years ago.

Back to my testing of EDDSA certs.

_______________________________________________
test mailing list -- test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to test-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/test@xxxxxxxxxxxxxxxxxxxxxxx/message/RXY7WUCXXCYOJEGQXPEXWLKPQ4FPJ75E/




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux