Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 03:40
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  $Today = (date ("l dS of F Y ( h:i:s A )",time()));
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: $Today = (date ("l dS of F Y ( h:i:s A )",time()));  (Read 2383 times)
Kroko
Server what's that
*
Posts: 12



View Profile WWW Email
« on: 07/14/02, 22:56 »

hello,

$Today = (date ("l dS of F Y ( h:i:s A )",time()));
this returns me full date and time. the problem is that it returns server's time. How can make it return the GMT+x time ?

Any help is more than welcome
Thank you,
Croco
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 07/16/02, 02:02 »

It's difficult to get the local time for each user.  If that's what you want to do - It may be better to use a client side script for it (like actionscript).

But you can do something like this:

$month = date("F");
$day = date("j");
$year = date("Y");
$hour = date("g") - 2;
$min = date("i");
$sec = date("a");

$Today = "$month $day, $year, $hour:$min $sec";


If you always want to subract a certain number of Hours from your Server time.




Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything