function ausers_format_timestamp_as_date($v)
 {
     // in the right timezone
     global $tzobj;
     if (empty($v)) {
         return '';
     }
     if (empty($tzobj)) {
         $tzobj = amr_getset_timezone();
     }
     // $d = date('Y-m-d H:i:s e', (int) $v) ;
     if (is_numeric($v)) {
         $dt = new datetime('@' . $v);
         $dt->setTimeZone($tzobj);
         /* optional if you want to use your sites formats	
         			$date_format = get_option('date_format'); //wp preloads these
         			$time_format = get_option('time_format');	
         			*/
     } else {
         return $v;
     }
     // we got something that is definitely not a timestamp
     if (!is_object($dt)) {
         $d = $v;
     } else {
         $date_format = 'Y-m-d';
         $time_format = 'H:i';
         //'H:i:s'
         $tz = 'P';
         //e or T or P
         $d = $dt->format($date_format . ' ' . $time_format . ' ' . $tz);
     }
     return $d;
 }