HP3000-L Archives

April 2003, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Woods <[log in to unmask]>
Reply To:
Jeff Woods <[log in to unmask]>
Date:
Thu, 17 Apr 2003 09:40:38 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
At +0100 10:04 PM 4/16/2003, Belkacem Stephen wrote:
>I currently send out a report hourly via Sendmail. The report is delivered
>to users within a different timezone as the HP from where it came. Because
>of this the heading in the e-mail is, to the user, incorrect. Is there
>anyway of using the TZ variable so that the e-mail timestamp differs from
>the systems clock?

The TZ setting is via a session-scoped CI variable for "MPE-processes" and
a process-scoped environment variable for "POSIX processes".  One of the
nice features of Unix-oriented applications is that UTC (nee GMT) is used
for all timestamps internally and "local timezone" (specified by the TZ
environment variable) is a presentation edit used whenever date and/or time
data is formatted for display.  If you want any TZ-aware application to
format dates using a different timezone than the one globally set, just
edit the TZ variable for that session/process before it's used by the process.

In your case, for whatever process creates the Date: header in the email
where you want the timezone customized to the timezone of the recipient,
change the TZ value to match that of the recipient.  Note that this means
you will need to send a different copy of the email to each set of users
based on their timezone.  It also presumes you know the timezone and
correct corresponding TZ value for each recipient.

--
Jeff Woods <[log in to unmask]>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2