display last update timetamp
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 14 Jan 2015 13:43:39 +0000 (14:43 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 14 Jan 2015 13:43:39 +0000 (14:43 +0100)
html.pl

diff --git a/html.pl b/html.pl
index 10c6392..661423d 100755 (executable)
--- a/html.pl
+++ b/html.pl
@@ -13,6 +13,7 @@ use Text::Unaccent;
 use Carp qw(confess);
 use utf8;
 use JSON;
+use POSIX qw(strftime);
 
 use lib '/srv/koha_ffzg';
 use C4::Context;
@@ -360,7 +361,10 @@ sub html_title {
 }
 
 sub html_end {
-       return qq|</body>\n</html>\n|;
+       return
+               qq|<small style="color:gray">Zadnji puta osvježeno: |,
+               strftime("%Y-%m-%d %H:%M:%S\n", localtime()),
+               qq|</body>\n</html>\n|;
 }
 
 mkdir 'html' unless -d 'html';