Gossamer Forum
Quote Reply
GT::Date problem?
Hi. I'm having a bit of a weird problem with the GT::Date module. I have the following script;

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 Unimpressed

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!
Subject Author Views Date
Thread GT::Date problem? Andy 3364 Jun 2, 2003, 6:25 AM
Thread Re: [Andy] GT::Date problem?
pugdog 3306 Jun 2, 2003, 4:52 PM
Post Re: [pugdog] GT::Date problem?
Andy 3314 Jun 3, 2003, 1:36 AM
Thread Re: [pugdog] GT::Date problem?
Andy 3295 Jun 3, 2003, 9:01 AM
Thread Re: [Andy] GT::Date problem?
Paul 3306 Jun 3, 2003, 9:06 AM
Thread Re: [Paul] GT::Date problem?
Andy 3294 Jun 3, 2003, 9:12 AM
Thread Re: [Andy] GT::Date problem?
Paul 3281 Jun 3, 2003, 11:09 AM
Post Re: [Paul] GT::Date problem?
Andy 3279 Jun 3, 2003, 11:22 AM