Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In panels, a "last updated" field in the content of a panel always displays the creation date of the node instead of the last updated date of the node.
I believe this is a bug that can be fixed as follows.
In line 35 of modules/ctools/plugins/content_types/node_context/node_updated.inc ,
change "node->updated" to "node->changed":
That is, the current line is
$block->content = format_date(!empty($node->updated) ? $node->updated : $node->created, $conf['format']);
Change it to
$block->content = format_date(!empty($node->changed) ? $node->changed : $node->created, $conf['format']);
I will add a duplicate of this bug report to the issues queue for the panels module.
Neal
Comments
Comment #1
dmetzcher CreditAttribution: dmetzcher commentedSame issue for me.
Any update on this?
nealeyoung: Thanks for posting the code change. I'll make the mod for now and get it working until the module is updated.
Thanks!
Comment #2
sdboyer CreditAttribution: sdboyer commentedPlease never do this, it just wastes my time. Even worse is doing it and not providing a link, so I have to go searching around to find the duplicate issue. There's a reason that 'duplicate' is one of the 'closed'-type status messages on d.o.
Also, please file a patch next time: http://drupal.org/patch
Fixed.