]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
web commit by http://jblevins.org/: Bug report update
[ikiwiki.git] / doc / bugs / aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn
1 It would be nice if the [[aggregate_plugin|plugin/aggregate]] would try to extract the m/ctime out of each post and touch the files on the filesystem appropriately, so that ikiwiki reflects the actual time of the post via the [[inline_plugin|plugin/inline]], rather than the time when the aggregation ran to pull the post in. --[[madduck]]
2
3 > Like this? (Existing code in aggregate.pm...) --[[Joey]]
4
5         # Set the mtime, this lets the build process get the right creation
6         # time on record for the new page.
7         utime $mtime, $mtime, pagefile($guid->{page})
8                 if defined $mtime && $mtime <= time;
9
10 >> I'll have to debug this, it's not working here... and this is an ikiwiki aggregator scraping another ikiwiki site.