Perl question

Victor Odhner plug-devel@lists.PLUG.phoenix.az.us
Mon May 21 19:44:00 2001


I missed a basic flaw:

Carl wrote:
> I'm assuming that all of the admins are going to want it to be in EST.

You shouldn't assume anything.  If they have TZ set to their preference, in their respective login environments, then your application using "localtime" will show them the time for the zone THEY have chosen.  Overriding TZ within your Perl application is probably a bad idea.

If you want to encourage them to set it to EST or US/Eastern as a standardized convention, in the script that sets up the environment for your application, that's OK too.

But your script should probably display the contents of $ENV{ TZ } beside the time to show them what zone they're seeing.

Vic