Skip to content

Commit

Permalink
Make simplify_date always return HTML, and remove the eucconv call th…
Browse files Browse the repository at this point in the history
…at's not useful for dates
  • Loading branch information
jcameron committed Feb 17, 2025
1 parent b5eb021 commit 818b300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mailbox/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ for(my $i=$start; $i<=$end; $i++) {
}

# Date and size columns
push(@cols, $bs.&eucconv(&simplify_date(&html_escape($m->{'header'}->{'date'}))).$be);
push(@cols, $bs.&simplify_date($m->{'header'}->{'date'}).$be);
push(@cols, $bs.&nice_size($m->{'size'}, 1024).$be);
$rowtds[$#cols] .= " data-sort=".$m->{'size'};

Expand Down
3 changes: 1 addition & 2 deletions mailbox/view_mail.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ else {
$in{'id'}, $subs));
}
print &ui_table_row($text{'mail_date'},
&eucconv(
&simplify_date(&html_escape($mail->{'header'}->{'date'}))));
&simplify_date($mail->{'header'}->{'date'}));

my $subj = $mail->{'header'}->{'subject'};
$subj =~ s/^((Re:|Fwd:|\[\S+\])\s*)+//ig;
Expand Down

0 comments on commit 818b300

Please sign in to comment.