Hi. I'm having a bit of a weird problem with the GT::Date module. I have the following script;
use CGI::Carp qw(fatalsToBrowser);
use strict;
use lib '/home/linkssql/public_html/cgi-bin/dev2/admin';
use Links qw/$CFG/;
use GT::Date;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/linkssql/public_html/cgi-bin/dev2/admin');
Links::init_user();
print "Content-type: text/html \n\n";
print "GT::Date: " . GT::Date::date_get() . "<BR>";
print "Localtime: " .localtime . "<BR>";
print "Time: " . time;
This prints out;
2002-06-02
In SSH, however, if I type;
ssh: Mon June 2 14:21:45 GMT 2003
ssh:
As you can see, the year seems to be incorrect
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser);
use strict;
use lib '/home/linkssql/public_html/cgi-bin/dev2/admin';
use Links qw/$CFG/;
use GT::Date;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/linkssql/public_html/cgi-bin/dev2/admin');
Links::init_user();
print "Content-type: text/html \n\n";
print "GT::Date: " . GT::Date::date_get() . "<BR>";
print "Localtime: " .localtime . "<BR>";
print "Time: " . time;
This prints out;
2002-06-02
In SSH, however, if I type;
Quote:
ssh: date ssh: Mon June 2 14:21:45 GMT 2003
ssh:
As you can see, the year seems to be incorrect

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!