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

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


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