Logon to UM City or Apply for a UM City passport
 - UM City - No wonder the PHP people don't like me    Home > DOWNTUM > Visual Stimulus > No wonder the PHP people don't like me
x
No wonder the PHP people don't like me
by Universal Sea
x
x
x Unread post xUniversal Sea   - at 9:19 pm on Sunday February 10 2002 x
x x
x Universal Sea office@@universalmetropolis.com
10-Feb-2002 09:16

because it isn't made explicitly clear yet, and something I just learned
after several years of PHP and database work, and having just moved to a
server out of Eastern Standard Time:

the date() function calls the date relative to the time of the server, NOT
that of your browser. Even "local" time is confusing, as it is
not your local time, but that of the server your silly site is hosted on.

This is a very big deal on things that utilise date and time such as
message boards, private web-based instant messaging, web-based chat,
whatever the dilly.

To correct this, you will need help from your usership, which is something
you should not depend on. You will probably need them to personally specify
their time difference, unless you combine javascript or some other things
to calculate everything.

redspider hints at it, good job soldier. go to his site, hosted in
pittsburgh, for the melbdate function.


x
x
x x x
x x View the profile for Universal Sea x
x
^ ^ Back to top
x
< < return to Visual Stimulus, DOWNTUM
Logon to UM City or Apply for a UM City passport
x
x
City home | Login/Signup