How can I get and use a user's TZ setting from their .bashrc in a Perl CGI script?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-04-19T15:29:42Z Indexed on 2010/04/20 13:03 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

Each of my users has a (possibly) different TZ defined in their .bashrc. I have a Perl script that displays date/time and want it to have it display with their profile time zone.

Does anyone know the best way to do this?

© Stack Overflow or respective owner

Related posts about perl

Related posts about bashrc