strtotime() not working correctly?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
blazer21
Forum Newbie
Posts: 4
Joined: Wed Jun 22, 2005 3:07 pm

strtotime() not working correctly?

Post 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()));
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

1 thread per topic is sufficient.
Topic Locked.

Original Thread: viewtopic.php?t=34746
Locked