have autodate include hours and minutes

This commit is contained in:
Shish 2012-01-22 14:40:25 +00:00
parent 208320f072
commit da45389c42

View File

@ -130,7 +130,7 @@ function to_shorthand_int($int) {
*/ */
function autodate($date, $html=true) { function autodate($date, $html=true) {
$cpu = date('c', strtotime($date)); $cpu = date('c', strtotime($date));
$hum = date('F j, Y', strtotime($date)); $hum = date('F j, Y; H:i', strtotime($date));
return ($html ? "<time datetime='$cpu'>$hum</time>" : $hum); return ($html ? "<time datetime='$cpu'>$hum</time>" : $hum);
} }