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

Same 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!

Version:6.x-1.3» 6.x-1.4
Status:Active» Fixed

I will add a duplicate of this bug report to the issues queue for the panels module.

Please 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.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.