[eluser]blorriman[/eluser]
Thanks, I found a unix_to_human snippet with formatting, so I combined it as follows:
Code:
$timestamp = now();
$timezone = $row->zone;
$daylight_saving = TRUE;
$now = gmt_to_local($timestamp, $timezone, $daylight_saving);
function unix_timestamp_to_human($timestamp = "", $format = 'D M d - h:i a') {
if (empty($timestamp) || !is_numeric($timestamp))
$timestamp = time();
return ($timestamp) ? date($format, $timestamp) : date($format, $timestamp);
}
echo unix_timestamp_to_human($now); //Return: Thu May 05 - 03:59 pm