I'm needing to output a custom date as the pubdate. Was having some issues with formatting (see here).
So I decided to rewrite the field in a template file but it's not being called. I need to output it as RCF 2822 format ('r') so social media delivery services such as dlvr.it can use it.
Anyway here is how I am rewriting the date field... works great but it's not being called.
$dateMinusWeek = strip_tags($content['field_date_minus_week']['#markup']);
$dateMinusWeekR = strtotime($dateMinusWeek);
print date('r', $dateMinusWeekR);
I've tried every file name for the template file... most strict to least strict. I also tried leaving it as the default print output which didn't work. Any help would be much appreciated.