> have you tried reading the documentation for posix?
> 
> from the docs:
> 
> If you want your code to be portable, your format (fmt) argument should 
> use only the conversion specifiers defined by the ANSI C standard. These 
> are aAbBcdHIjmMpSUwWxXyYZ%.
> 
> i don't see 'D' in that list.  and besides, your earthlink fmt has 
> '%1d', while your ci-host fmt has '%D'.

OK I did try to read the documentation, and have changed my code:

print OUT strftime('%A, %B %ld, %Y %I:%M %p',localtime) ,"\n";

But look here, 

<http://www.coraconnection.com/cgi-bin/schedule.pl>

what is going wrong? (see the date string)
Thanks -- have great weekend
Dave G.

On 6/21/02 at 7:59 AM, fliptop <[EMAIL PROTECTED]> wrote:

> David Gilden wrote:
> 
> > I have small problem here, check out the following:
> > 
> > #!/usr/bin/perl 
> > 
> > use CGI qw/:standard/;
> > use CGI::Carp qw(fatalsToBrowser);
> > use POSIX 'strftime';
> > 
> > # This works fine on Earthlink's servers using:
> > 
> > print OUT strftime('%A, %B %1d, %Y %I:%M %p',localtime) ,"\n";
> > 
> > #returns: Wednesday, June 19, 2002 02:01 PM
> > 
> > #but at CI-Host, I get this string:
> > 
> > print OUT strftime('%A, %B %D, %Y %I:%M %p',localtime) ,"\n";
> > #returns: Wednesday, June d, 2002 12:53 PM
> > 
> > How can I fix this to work at CI-Host, (I think they are runing Apache)
> 
> 
====================================================
Cora Connection: Your West African Music Source
Resources, Recordings, Instruments & More!
<http://www.coraconnection.com/> 
====================================================

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

Reply via email to