[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19991230: Y2K Bug Fix for pqact program of the LDM



On Thu, 30 Dec 1999, Unidata Support wrote:

> >To: address@hidden
> >cc: address@hidden,
> >cc: address@hidden,
> >cc: address@hidden
> >From: "D. J. Raymond" <address@hidden>
> >Subject: Re: 19991230: Y2K Bug Fix for pqact program of the LDM
> >Organization: .
> >Keywords: 199912301810.LAA28106
> 
> Hello,
> 
> I am still using ldm-5.0.6 and managed to find something that looked
> like the line you quoted in the y2k fix -- however, this line wasn't
> unique.  I am attaching my patch with some context and perhaps you
> can tell me if I did the right thing.
> 
> Dave Raymond

Dave,

It looks ok to me.  Before installing the new pqact in the ~ldm/bin
directory  I would do:

% ldmadmin stop
% cd ~ldm/bin
% cp pqact pqact.sav

copy in new pqact 

% ls -l pqact  (make sure executable permission are there)
% ldmadmin start
 
check the logs/ldmd.log file that pqact started up ok.

Robb...
> 
> ------
> 
> 
>           if (strcmp(select,"yyyy") == 0) {
>               year = time_s->tm_year + (time_s->tm_year > 87 ? 1900 : 2000);
>               (void) sprintf(ostring,"%d",year);
>               ostring += 4;
>           }
>           else if (strcmp(select,"yy") == 0) {
>               year = time_s->tm_year;
>               /* y2k fix from unidata
>               (void) sprintf(ostring,"%d",year);
>               */
>               (void) sprintf(ostring,"%02d", year % 100);
>               ostring += 2;
>           }
> 

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================