View Single Post

  #5 (permalink)  
Old 07-28-2003
Wayne Pollock
 
Posts: n/a
Default Re: Multiple time zones 1 server?

The default time is created from a file /etc/localtime. This is
a copy or symlink to one of the timezone files in /usr/share/timezone.
These are compiled timezone files (from "zic").

For users not using the default, the TZ environment variable should
be set and exported in their login script.

I don't know how you can make apache sensitive to timezones, but
you can get close enough for your particular situation. Apache
can be made to return different pages depending on the "locale"
of the client's browser. You can have different clients map to
different URLs or CGIs, which can then set TZ in their environment.

Hope this helps!

-Wayne

P.S. When I worked for Bell Labs in the early 1980s, the time
zone was compiled into the kernel! To change the timezone
meant to recompile the kernel, and there was only a single
zone for all users. All commercial Unixes at the time came
with enough .o files and source to change the zone and rebuild
the kernel!

graham Dinning wrote:

> Hi people,
> I have an interesting conundrum. We run as a small ISP for clients as a
> side business.
> We have a single server that does everything running RH7.2. it runs DNS,
> mail, web, webmail, java, tomcat, database etc etc.
> The boss sent an email yesterday asking id we could use GMT for our
> clients overseas and stay local time for our clients in oz.
> This is a valid enough request.
> The people in england want to see their reports etc in their time and the
> clients in oz want the same.
> If I ask the question of people I know I get "Use UTC and everone can just
> cope".
>
> Is there a solution to this problem or do people just run another box for
> this kind of situation. Thinking about it it seems that you would have to
> run little virtual servers or different boxes.
> Is this actually the case or is there something out there already that
> solves this problem. I have been looking in lots of places and can't seem to
> find any good answers.
>
> Thanks in advance
> Graham
>
>


Reply With Quote