This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING^2] RFC [PATCH] BZ#1077902: New API gettimezone


On 05/01/2014 11:03 PM, Paul Eggert wrote:
> Carlos O'Donell wrote:
> 
>> Assumptions:
>>
>> - Server and chroot have updated and matching zone info files.
>>
>> - You don't control the server e.g. OpenShift Gears or Docker.
> 
> Another assumption: tz files don't change while applications are
> running, as the apps typically won't notice the change.

I have forked a new thread to discuss this and it is IMO outside
the scope of this discussion.
 
>> (1) Have the administrator of the server set the TZ env var to match
>>    /etc/localtime.

>> Is you opinion that (1) is the correct solution?
> 
> (1) should work under the assumptions you gave, so in that sense it's
> correct; but it's not the only working solution and I would suggest
> something different.

What would you suggest to solve the goal?

Restated here for clarity:

- Set the local time in the chroot to match the server local time.

Would you set both to UTC?

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]