Home › Forums › Back End › Human time difference – won't work › Reply To: Human time difference – won't work
December 8, 2014 at 7:41 am
#190288
Participant
Hi Chris,
The code you’ve copied above (from what I can see) is the same as the theme’s default but with an additional ‘;’ – I’m looking to have the human_time_diff function in there instead of the get_the_time. The code I pasted in my very first message works fine.
Are you suggesting I try
$cb_date = ‘<i class=”fa fa-clock-o”></i> <time class=”updated” datetime=”‘ . human_time_diff(‘Y-m-d’, $cb_post_id) . ‘”>’ . date_i18n( get_option(‘date_format’), strtotime(human_time_diff(“Y-m-d”, $cb_post_id ))); . ‘</time>‘;
Thanks