function getDateString( $stamp ) {
- global $invert_time, $hour_format;
+ global $invert_time, $hour_format, $show_full_date;
if ( $stamp == -1 ) {
return '';
$dateZ = - $dateZ;
}
$midnight = $now - ($now % 86400) - $dateZ;
+ $nextmid = $midnight + 86400;
- if ($midnight < $stamp) {
+ if (($show_full_date == 1) || ($nextmid < $stamp)) {
+ $date_format = _("M j, Y");
+ } else if ($midnight < $stamp) {
/* Today */
if ( $hour_format == SMPREF_TIME_12HR ) {
$date_format = _("g:i a");