From 7ca1d573d5dee0b1eaef8c32d40e754f8b8b4de2 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 1 Jun 2013 09:46:45 +0000 Subject: index.json: add last update date git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8415 5b7c3c08-40e5-403b-9995-ace06908e4af --- tmpl/index.html | 3 ++- tmpl/index.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tmpl/index.html b/tmpl/index.html index e18c3fe..d5c482a 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -174,7 +174,8 @@ Some data is available in json format : diff --git a/tmpl/index.json b/tmpl/index.json index 1f60acf..b6102d7 100644 --- a/tmpl/index.json +++ b/tmpl/index.json @@ -5,6 +5,7 @@ SET out.balance = transactions.balance.bstr; SET out.donations_30days = donations.total_30.bstr; SET out.last_donations = []; + SET out.last_update = date.format(last_update, format => '%Y/%m/%d %H:%M:%S'); SET i=0; SET l=10; FOREACH don IN donations.donations.sort('date').reverse; -- cgit v1.2.1