Full Date In TB Methys II Theme

+1
-7
-1

I use this theme for news site and it doesn't show the full date (year) in the nodes. How to also show the year in nodes?

Best

+1
-12
-1

Hi Arnieswap,

We do a little customization to make the date match with this design. If you need to change how the date work, please update it in node.tpl.php

Sincerely,
HaiNN

+1
-6
-1

What changes do I make to the node.tpl.php file?

+1
+1
-1

Please refer how it does in inc/preprocess_functions.inc


function tb_methys_ii_preprocess_node(&$vars) {
$vars['created_day'] = date('d', $vars['created']);
$vars['created_month'] = date('M', $vars['created']);
...

and in tpl/node.tpl.php


print '<span class="submitted-date"><span class="on">' . t('on') . '</span><span class="date">'. $created_day .'</span><span class="month">'. $created_month .'</span></span>';

Kindly,