Page 1 of 1

strtotime() not working correctly?

Posted: Wed Jun 22, 2005 4:08 pm
by blazer21
PHP v5.0.2

When running the following code date always returns 04:00:00 for the time and not 4 hours past the current time?

Code: Select all

echo $date('m/d/Y h:i:s', strtotime('+4 hours', time()));

Posted: Wed Jun 22, 2005 4:34 pm
by John Cartwright
1 thread per topic is sufficient.
Topic Locked.

Original Thread: viewtopic.php?t=34746