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

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

 



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.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

> 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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]