X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/db0d6c5f012bb2f4bc1df5cd1a032e7469a8d331..91142c86adcbb2cddd0e3dc7a38afa8522624ad8:/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn diff --git a/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn b/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn index 6d837dbdd..a73b1a70c 100644 --- a/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn +++ b/doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn @@ -1 +1,10 @@ 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]] + +> Like this? (Existing code in aggregate.pm...) --[[Joey]] + + # Set the mtime, this lets the build process get the right creation + # time on record for the new page. + utime $mtime, $mtime, pagefile($guid->{page}) + if defined $mtime && $mtime <= time; + +>> I'll have to debug this, it's not working here... and this is an ikiwiki aggregator scraping another ikiwiki site.