This topic is locked

Incorrect date and Time

9/15/2008 5:27:23 AM
PHPRunner General questions
D
dcrera author

Hi,
The now() is returning a a time much later than the time on the Oracle database.
Is there a locale setting somewhere ? where is the now() date/time obtained from ?
Thanks

Sergey Kornilov admin 9/15/2008

Now() returns web server system time.

J
Jane 9/16/2008

Hi,
you can form current date and time using strtotime() and date() functions.

Here is just a sample:

date("d/m/Y",strtotime("+2 hour"));

D
dcrera author 9/16/2008

Thank you

Hi,

you can form current date and time using strtotime() and date() functions.

Here is just a sample: