Gossamer Forum
Home : General : Perl Programming :

Greenwich Mean Time Display Script

Quote Reply
Greenwich Mean Time Display Script
Does anybody know where I can get a script to display GMT on my site and on the Links pages?

Thanks
Quote Reply
Re: Greenwich Mean Time Display Script In reply to
Just change the call to localtime() to gmtime() and it should work.

Cheers,

Alex
Quote Reply
Re: Greenwich Mean Time Display Script In reply to
In order to switch to gmtime (GMT/UTC), localtime appears in the following five files of Links 2.0:

db_utils.pl (once)
links.cfg (twice)
Mailer.pm (once)
nph-email.cgi (twice)
nph-verify.cgi (once)


Quote Reply
Re: Greenwich Mean Time Display Script In reply to
Two other suggestions....

1) Use the Changing Time code hack located at:

http://www.anthrotech.com/cgi/links/faqs/time/

2) Download the International Date.pm module at

http://www.cpan.org

Regards,

Eliot Lee