Hello,
Take a look at this php script:
<?php
date_default_timezone_set('Africa/Nairobi');
echo strtotime("Wed, 2011-Apr-06 13:41") . "\n";
?>
I run it to produce this:
sh-4.1$ php test.php
1302086460
Now, lets do the reverse:
I took the results above and now have this:
<?php
date_default_timezone_set('Africa/Nairobi');
echo date("D, Y-M-d H:m", "1302086460") . "\n";
?>
Which produces:
sh-4.1$ php test.php
Wed, 2011-Apr-06 13:04
Question is, where have my 37 minutes vanished to?
If you need a little bit more info:
sh-4.1$ php -version
PHP 5.3.6 (cli) (built: Mar 17 2011 20:58:15)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies