Timezone in BASH of COPSSH

1 post / 0 new
itefix
Offline
Last seen: 2 weeks 8 hours ago
Joined: 01.05.2008 - 21:33
Timezone in BASH of COPSSH

Hi guys, I got a very strange problem. Environment
SSH Server : Win2K server with COPSSH 1.33
SSH Client : open SSH client on HP-UX

I have a perl script running on Win2K server. It contains following line to get the timestamp of "now" :
============================
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
============================

It works perfectly in DOS prompt, but If I login through SSH from the HP-UX server, in the bash and run the same perl script, the script returns timestamp which is always 9 hours behine the local time. (I am in Sydney GMT+9:00 hours)

I believe this is the timezone setting issue of COPSSH.

However, I have checked the Win2K server, the timezone setting is correct, so I suspect the COPSSH doesn't get the timezone information from the OS, so it just returns the GMT time instead of local time.

Have anyone experienced the same problem ? How to fix ?

Thanks for any feedback.

Cheers
YF

Release announcements