[libvirt] [PATCH 4/6] Allow a timezone to be specified instead of sync to host timezone

Eric Blake eblake at redhat.com
Mon Mar 1 18:54:41 UTC 2010

According to Daniel P. Berrange on 3/1/2010 11:45 AM:
>>> +    <data type="string">
>>> +      <param name="pattern">[a-zA-Z0-9_\.\+\-/]+</param>
>>   Hum ... I wonder if we should not add ':' as it's used for POSIX TZ
> How is it used ?  I looked at /usr/share/zoneinfo and all the files
> there should be matched by this regex ok without needing ':'

POSIX states that the use of ':' introduces implementation-defined extensions.


> The value of TZ has one of the two forms (spaces inserted for clarity):
> :characters
> or:
> std offset dst offset, rule
> If TZ is of the first format (that is, if the first character is a <colon>), the characters following the <colon> are handled in an implementation-defined manner.

In other words, since "Europe/Paris" is NOT a valid timezone according to
POSIX rules, a user concerned about POSIX compliance should be allowed to
use TZ=":Europe/Paris" to still get glibc semantics of a named zone.

Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100301/761203e0/attachment-0001.sig>

More information about the libvir-list mailing list