Jump to content

DATETIME MYSQL PHP


onenonly

Recommended Posts

it doesnt work???

 

<?php

$time = "2009-06-17 13:51:01";

$test = strtotime($time + "2 hours");

 

echo $test."<BR>";

echo $time."<BR>";

echo date("Y-m-j H:i:s", $test);

?>

 

output:

1245287460

2009-06-17 13:51:01

2009-06-17 20:11:00 <-----WRONG it suppose to be 2009-06-17 15:51:01

Link to comment
https://forums.phpfreaks.com/topic/162609-datetime-mysql-php/#findComment-858565
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.