Re: PHP: date - in addtion

From: Date: Sat, 08 Jul 2000 21:38:23 +0000
Subject: Re: PHP: date - in addtion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5573@lists.php.net to get a copy of this message
Quick question. I've been following this date thread and it is fine if all of your visitors are within the same timezone as your server. What can be done if not? Is there any way of checking a persons date and time from their browser (using javascript?) and then passing that as a a variable to PHP? Just wondering Ade > like this?? up your to use it or no :) > > <? > $today_orig = date( "g:i a F dS Y",time()+0*3600); > $today_modif = date( "g:i a F dS Y",time()+14*3600); > echo $today_orig; > echo "<br>"; > echo $today_modif; > ?> > > other sample on > http://www.zend.com/codex.php?id=50&single=1 > > At 16:19 08/07/00 -0400, you wrote: > >Hey, I am making a php script to display the date. I am using the date() > >function. > >When I run the script it displays the date as: > >4:16am Saturday, July 8th, 2000 > >when the date I want it to display is: > >2:16pm Saturday, July 8th, 2000 > >How can I configure it to do this? > > > >-Ross Palmer > > -- > Doubt whom you will, but never yourself. > http://php.klik.or.id > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#5573) next »