Skip to content

Commit

Permalink
Merge pull request #410 from raduconst/calendar-status
Browse files Browse the repository at this point in the history
Improve i18n - use human_time_diff in Story Budget module.
  • Loading branch information
rinatkhaziev authored May 7, 2018
2 parents c87f3b7 + 8f2fef2 commit 0121284
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/story-budget/story-budget.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@ function term_column_default( $post, $column_name, $parent_term ) {
return $output;
break;
case 'post_modified':
$modified_time_gmt = strtotime( $post->post_modified_gmt . " GMT" );
return $this->timesince( $modified_time_gmt );
return sprintf( esc_html__( '%s ago', 'edit-flow' ), human_time_diff( get_the_time( 'U', $post->ID ), current_time( 'timestamp' ) ) );
break;
default:
break;
Expand Down

0 comments on commit 0121284

Please sign in to comment.