We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9018917 commit d19b7a4Copy full SHA for d19b7a4
1 file changed
rt-plugin-report.php
@@ -537,7 +537,7 @@ private function render_table_row( $report ) {
537
$time_update = new DateTime( $report['repo_info']->last_updated );
538
$time_diff = human_time_diff( $time_update->getTimestamp(), current_time( 'timestamp' ) );
539
$css_class = $this->get_timediff_risk_classname( current_time( 'timestamp' ) - $time_update->getTimestamp() );
540
- $html .= '<td class="' . $css_class . '" data-sort="' . esc_attr( $time_update->getTimestamp() ) . '">' . esc_html( $time_diff ) . '</td>';
+ $html .= '<td class="' . $css_class . '" data-sort="' . esc_attr( (string) $time_update->getTimestamp() ) . '">' . esc_html( $time_diff ) . '</td>';
541
} else {
542
$html .= $this->render_error_cell();
543
}
0 commit comments