You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Vasarhelyi asd Daniel <as...@mail.musichello.com> on 2001/12/12 23:31:42 UTC

hour-problem

Hi!

I have a little problem with my embedded perl HTML, it's losing a hour. 
Says 22:00 at 23:00. I has tried to find what makes this distance, but
can't find out.

I looked over documentations and faq-s, and can't find answer.
Would anyone help? As I think, it has an one-line answer, would anyone
cc it to me? (asd@mail.musichello.com) I did not want to subscribe for 5
hours...

Thanks in advance
asd

-- 
Daniel "asd" Vasarhelyi
PGP key avaible at http://asd.musichello.com/gpg-pub.key and public keyservers
Key fingerprint = EA00 AF4D A83C 1122 0967  DDF5 27BC 390F 181F 9954

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: hour-problem

Posted by Gerald Richter <ri...@ecos.de>.
> > >
> > > I have a little problem with my embedded perl HTML, it's losing a
hour.
> > > Says 22:00 at 23:00. I has tried to find what makes this distance, but
> > > can't find out.
> > >
> > This surely is not a problem of Embperl. I guess the timezone isn't
> > correctly set when running under Apache. Check your environment
settings.
> Can't find any way what where and how.
> I'm using debian 2.2, shell's "date" and php's date() works well.
> What do you think?
>

>From your mail headers it's seem that your timezone is +1, so the time that
is displayed is GMT. If you try

[+ scalar(localtime) +]

Does thsi get the wrong time ?

If yes, I would compare the env setting on the command line with ones under
Apache, e.g. do

printenv

on the command line and run

[$while ($k, $v) = each (%ENV) $]
  [+ $k +] = [+ $v +]
[$endwhile$]

as embperl page and check out what's different and may be time related

Gerald

P.S. Please keep the discussion on the list




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: hour-problem

Posted by Gerald Richter <ri...@ecos.de>.
Hi!
>
> I have a little problem with my embedded perl HTML, it's losing a hour.
> Says 22:00 at 23:00. I has tried to find what makes this distance, but
> can't find out.
>

This surely is not a problem of Embperl. I guess the timezone isn't
correctly set when running under Apache. Check your environment settings.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org