I have noticed that when I place a unix date/time stamp into a db field it consistemtly files a time of 5 minutes past the hour:confused:
I have set the session timezone like so ...
I obtain the current time like this ...
and am converting it for display, thus...
It may well be that it has something to do with the MySql set up - which is simply VARCHAR(11) - current maximum size being (10)
Can anyone see how this is happening and perhaps put me straight?
I have set the session timezone like so ...
PHP Code:
date_default_timezone_set('GMT');
PHP Code:
$date_time = time();
PHP Code:
$format = ("D d M Y h:m");
$date_time = date($format, $row["date_time"]);
Can anyone see how this is happening and perhaps put me straight?