You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Sherwin Daganato <wi...@email.com.ph> on 2000/08/18 12:01:39 UTC
Re(2): localtime inconsistency
it displays like this:
Fri Aug 18 10:00:37 2000
and looking at windows 98 clock:
Fri Aug 18 5:53:30 PM
What does this mean?
richter@ecos.de writes:
>> Help please. I'm displaying the current date in embperl.
>> Why is it that sometimes I get a 1day lag date (even when clicking
>> refresh)?
>>
>> excerpt from new.epl:
>> <meta http-equiv="Pragma" content="no-cache">
>> <meta http-equiv="Expires" content="0">
>> <meta http-equiv="Cache-Control" content="no-cache">
>> </head>
>> <body>
>> [-
>> ($curmday, $curmon, $curyear) = (localtime(time()))[3, 4, 5];
>> $curyear += 1900; $curmon += 1;
>> $fdat{date} = "$curmon\-$curmday\-$curyear";
>> -]
>>
>>
>This should normaly not happen.
>
>What is happening if you do a
>
>[+ scalar (localtime) +]
>
>? Does this show the correct date/time?
>
>Gerald
Re: Re(2): Re(2): localtime inconsistency
Posted by Gerald Richter <ri...@ecos.de>.
>
> by perl -e "print scalar(localtime)":
> Fri Aug 18 20:44:40 2000
> in win98:
> Fri Aug 18 8:37:27 PM (Time zone GMT +8:00)
> in Embperl page:
> Fri Aug 18 12:44:41 2000
>
12 -> 20 are the time zone difference (+8h), so it looks like the time zone
isn't set under mod_perl (or you are using CGI mode?). I don't know why the
Perl and System clock have a difference of 7 minutes.
Looks like there is a problem with your time zone settings, but I don't have
a idea where to search for that problem. If it is under mod_perl, then maybe
someone on the mod_perl list can help.
Gerald
> sherwin
>
> richter@ecos.de writes:
> >
> >
> >> it displays like this:
> >>
> >> Fri Aug 18 10:00:37 2000
> >>
> >> and looking at windows 98 clock:
> >>
> >> Fri Aug 18 5:53:30 PM
> >>
> >> What does this mean?
> >>
> >
> >What does
> >
> >perl -e "print scalar(localtime)"
> >
> >say?
> >Same as the win 98 clock or same as the clock in the Embperl page?
> >
> >Gerald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
Re(2): Re(2): localtime inconsistency
Posted by Sherwin Daganato <wi...@email.com.ph>.
by perl -e "print scalar(localtime)":
Fri Aug 18 20:44:40 2000
in win98:
Fri Aug 18 8:37:27 PM (Time zone GMT +8:00)
in Embperl page:
Fri Aug 18 12:44:41 2000
sherwin
richter@ecos.de writes:
>
>
>> it displays like this:
>>
>> Fri Aug 18 10:00:37 2000
>>
>> and looking at windows 98 clock:
>>
>> Fri Aug 18 5:53:30 PM
>>
>> What does this mean?
>>
>
>What does
>
>perl -e "print scalar(localtime)"
>
>say?
>Same as the win 98 clock or same as the clock in the Embperl page?
>
>Gerald
Re: Re(2): localtime inconsistency
Posted by Gerald Richter <ri...@ecos.de>.
> it displays like this:
>
> Fri Aug 18 10:00:37 2000
>
> and looking at windows 98 clock:
>
> Fri Aug 18 5:53:30 PM
>
> What does this mean?
>
What does
perl -e "print scalar(localtime)"
say?
Same as the win 98 clock or same as the clock in the Embperl page?
Gerald
> richter@ecos.de writes:
> >> Help please. I'm displaying the current date in embperl.
> >> Why is it that sometimes I get a 1day lag date (even when clicking
> >> refresh)?
> >>
> >> excerpt from new.epl:
> >> <meta http-equiv="Pragma" content="no-cache">
> >> <meta http-equiv="Expires" content="0">
> >> <meta http-equiv="Cache-Control" content="no-cache">
> >> </head>
> >> <body>
> >> [-
> >> ($curmday, $curmon, $curyear) = (localtime(time()))[3, 4, 5];
> >> $curyear += 1900; $curmon += 1;
> >> $fdat{date} = "$curmon\-$curmday\-$curyear";
> >> -]
> >>
> >>
> >This should normaly not happen.
> >
> >What is happening if you do a
> >
> >[+ scalar (localtime) +]
> >
> >? Does this show the correct date/time?
> >
> >Gerald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>