<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
To the Xfce developers:<br>
<br>
Over on the Fedora test list, we have been having a lively
discussion about replacement for system-config-date. Finally Adam
Williamson of Fedoraproject contributed the following.<br>
<br>
It would be great if Xfce could implement something along the lines
that Adam says Gnome has done.<br>
<br>
thanks<br>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Subject:
</th>
<td>Re: system-config-date?</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Date: </th>
<td>Fri, 24 Aug 2018 10:34:35 -0700</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">From: </th>
<td>Adam Williamson <a class="moz-txt-link-rfc2396E" href="mailto:adamwill@fedoraproject.org"><adamwill@fedoraproject.org></a></td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Reply-To:
</th>
<td>For testing and quality assurance of Fedora releases
<a class="moz-txt-link-rfc2396E" href="mailto:test@lists.fedoraproject.org"><test@lists.fedoraproject.org></a></td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Organization:
</th>
<td>Fedora Project</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">To: </th>
<td>For testing and quality assurance of Fedora releases
<a class="moz-txt-link-rfc2396E" href="mailto:test@lists.fedoraproject.org"><test@lists.fedoraproject.org></a>, Jon Ingason
<a class="moz-txt-link-rfc2396E" href="mailto:jon.ingason@telia.com"><jon.ingason@telia.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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:
<a class="moz-txt-link-freetext" href="https://gitlab.gnome.org/GNOME/libgweather">https://gitlab.gnome.org/GNOME/libgweather</a>
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:
<a class="moz-txt-link-freetext" href="https://gitlab.gnome.org/GNOME/libgweather/tree/master/data">https://gitlab.gnome.org/GNOME/libgweather/tree/master/data</a>
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...
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
<a class="moz-txt-link-freetext" href="http://www.happyassassin.net">http://www.happyassassin.net</a>
_______________________________________________
test mailing list -- <a class="moz-txt-link-abbreviated" href="mailto:test@lists.fedoraproject.org">test@lists.fedoraproject.org</a>
To unsubscribe send an email to <a class="moz-txt-link-abbreviated" href="mailto:test-leave@lists.fedoraproject.org">test-leave@lists.fedoraproject.org</a>
Fedora Code of Conduct: <a class="moz-txt-link-freetext" href="https://getfedora.org/code-of-conduct.html">https://getfedora.org/code-of-conduct.html</a>
List Guidelines: <a class="moz-txt-link-freetext" href="https://fedoraproject.org/wiki/Mailing_list_guidelines">https://fedoraproject.org/wiki/Mailing_list_guidelines</a>
List Archives: <a class="moz-txt-link-freetext" href="https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/message/5GMWRKZLR6VWDTBAXCSR7F2THQVW733L/">https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/message/5GMWRKZLR6VWDTBAXCSR7F2THQVW733L/</a>
</pre>
</div>
</body>
</html>