Hi Jenda

Apparently the time zones are correct on my machine.

Statements :
print scalar(localtime)."\n";
print scalar(gmtime)."\n";

Output :
Fri Jan  3 20:35:34 2003
Fri Jan  3 15:05:34 2003

India is +5:30.

However I think i caught the bug...

The statement : 

elsif (abs($gm[1]-$local[1]-30) <5)

should be replaced by :

elsif (abs(abs($gm[1]-$local[1])-30) <5)

and similarly for the next elsif. 


The script runs like a spell thereafter :)

Thank you so much
Keep crooning... :-)
aman



-----Original Message-----
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 8:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Sent time in a Net::SMTP mail


From: Aman  Thind <[EMAIL PROTECTED]>
> Thanks a lot Jenda...u're a real wizard :)

Shame I can't even get drunk :-}

> There are still just two minor issues which I thought I should bring
> to your notice...
> 
> The time displayed is 30 mins more than the actual time here.

Are you sure the timezone is set correctly on your computer?
Could you see what do these two print?

        print scalar(localtime)."\n";
        print scalar(gmtime)."\n";

Do the times look correct?

> The To \ From tab now reads : Aman Thind [[EMAIL PROTECTED]].
> Can't I just do away with the email address ?

I don't think so.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to