forked from Cavemanon/cavepaintings
have autodate include hours and minutes
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user