[pmwiki-users] How to change LastModified format

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 5 15:59:34 CDT 2007


On Mon, Jun 25, 2007 at 11:50:02AM -0400, Ryan R. Varick wrote:
> I want to get rid of the comma between the date and the time.  I
> changed $TimeFmt in config.php and now the (All)RecentChanges list
> works as expected (using $CurrentTime); however, $LastModified does
> not seem to respect the new time format.  I see that $LastModified, as
> defined in pmwiki.php uses $TimeFmt to format the time, so any ideas
> why it wouldn't be working?
> 
> For reference, config.php:
> $TimeFmt = "%B %d, %Y at %I:%M %p";
> $RecentChangesFmt['$SiteGroup.AllRecentChanges'] = '* [[$Group.$Name |
> $Titlespaced]]  -  $CurrentTime  ';
> $RecentChangesFmt['$Group.RecentChanges'] = '* [[$Group.$Name |
> $Titlespaced]]  -  $CurrentTime  ';
> 
> Included footer page is using {$LastModified}.

When changing a setting in config.php, keep in mind that it will
affect entries in RecentChanges only for newly edited pages.
Old entries in RecentChanges will continue to display as they
did previously.

Put another way: RecentChanges pages are normal pages like any other --
they just get automatically updated whenever pages are edited on a site.
Changing $RecentChangesFmt[] affects only the new entries added
to RecentChanges -- it doesn't cause any existing entries to be
reformatted.

Pm




More information about the pmwiki-users mailing list