[aur-dev] [PATCH v2] Add user set timezones

Johannes Löthberg johannes at kyriasis.com
Thu Nov 17 22:43:06 UTC 2016


On 17/11, Johannes Löthberg via aur-dev wrote:
>On 16/11, Lukas Fleischer wrote:
>>On Wed, 16 Nov 2016 at 04:04:08, Mark Weiman wrote:
>>>Yeah, I chose something that was most likely long enough to hold anything that I
>>>needed to put in there. It looks like Johannes found it to be a maximum of 33
>>>characters, and after looking, the current maximum length is 30, so should I use
>>>33 or 30?
>>
>>It seems like 32 is a good value:
>>
>>   $ backward=https://raw.githubusercontent.com/eggert/tz/master/backward
>>   $ curl -s "$backward" | sed '/^#/d' | cut -f3 | wc -L
>>   32
>>
>>Johannes, where did you find a legacy name of length 33?
>>
>
>Was looking at the actual zoneinfo files on Arch, though it seems that 
>the longer ones are under the right/ and posix/ namespaces under 
>/usr/share/zoneinfo.  Though I don't think those are actually useful 
>to support though.
>
>right/ seems[0] to be for systems that don't implement leap second 
>support, where the system time includes the leap seconds (based on 
>TAI), and posix/ follows the POSIX standard and are based on UTC, so I 
>think we can just ignore those zones.
>
>[0]: http://www.ucolick.org/~sla/leapsecs/right+gps.html
>

Though it seems that right/ and posix/ are no longer subdirectories in 
the current upstream zoneinfo database structure, instead being separate 
directories in /usr/share/zoneinfe.  (Called zoneinfo, zoneinfo-posix, 
and zoneinfo-leapse.)  Though some distros, like Arch, still uses the 
old structure.

Essentially what you're supposed to do is to configure a system to use 
either the "posix" or the "right" database (now zoneinfo-leaps) by 
copying their files to /usr/share/zoneinfo, so you shouldn't actually 
use the full posix/ or real/ files.  (hwclock(8))


-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1768 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20161117/b07ed698/attachment.asc>


More information about the aur-dev mailing list