From ee4b9bcb3d13e3a617c7b5d53fa475d88b458db0 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Fri, 4 Sep 2015 14:48:33 +0700 Subject: [PATCH] timestamp --- index.js | 3 ++- views/basic_template.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 519a971..ed1bd6d 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,8 @@ app.get('/', function(req, res) { res.render('basic_template.html', { title: 'Supplier Balances', - balances: balances + balances: balances, + timestamp: new Date(), }); }) diff --git a/views/basic_template.html b/views/basic_template.html index bdc88ec..f6cb83f 100644 --- a/views/basic_template.html +++ b/views/basic_template.html @@ -32,6 +32,8 @@ </tr> {/for} </table> + + Generated on {timestamp} <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> -- 1.9.0