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.

= strip_tags($content['field_date_minus_week'][0]['#markup']);
$dateMinusWeekR = strtotime($dateMinusWeek);
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.


drwits’s picture

okay it is being called... was a field permission issue


maciej.zgadzaj’s picture

Status:Active» Closed (works as designed)