|
@@ 149-152 (lines=4) @@
|
| 146 |
|
} elseif ($dateArray['minutes'] < 5) |
| 147 |
|
{ |
| 148 |
|
$temp_array['date'] = "a few minutes ago"; |
| 149 |
|
} elseif ($dateArray['minutes'] >= 5 && $dateArray['minutes'] < 60) |
| 150 |
|
{ |
| 151 |
|
$temp_array['date'] = "about ".$dateArray['minutes']." minutes ago"; |
| 152 |
|
} elseif ($dateArray['hours'] < 2) |
| 153 |
|
{ |
| 154 |
|
$temp_array['date'] = "about an hour ago"; |
| 155 |
|
} elseif ($dateArray['hours'] >= 2 && $dateArray['hours'] < 24) |
|
@@ 155-158 (lines=4) @@
|
| 152 |
|
} elseif ($dateArray['hours'] < 2) |
| 153 |
|
{ |
| 154 |
|
$temp_array['date'] = "about an hour ago"; |
| 155 |
|
} elseif ($dateArray['hours'] >= 2 && $dateArray['hours'] < 24) |
| 156 |
|
{ |
| 157 |
|
$temp_array['date'] = "about ".$dateArray['hours']." hours ago"; |
| 158 |
|
} else { |
| 159 |
|
$temp_array['date'] = date("M j Y, g:i a",strtotime($row['date']." UTC")); |
| 160 |
|
} |
| 161 |
|
$temp_array['date_minutes_past'] = $dateArray['minutes']; |