misc: include current date/time in statistics PDF (#8917)

This commit is contained in:
Frédéric Péters 2015-11-08 17:08:49 +01:00
parent c49bd4976c
commit fe6a3195d9
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ page.open(system.args[1], function() {
$('div#main-content > h2').css({
'border-bottom': '1px solid #666',
'font-weight': 'bold'});
var date = $('<p>' + new Date().toLocaleString() + '</p>').appendTo('div#main-content');
date.css({
'position': 'absolute',
'top': '2ex',
'right': '1em'});
});
page.render(system.args[1] + '.pdf');
phantom.exit();