From cea9e421a811454fb11fc22443aac2f840bb2163 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 9 May 2013 11:33:13 +0200 Subject: added project id to post and a commenct --- views/projectPost.ejs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'views/projectPost.ejs') diff --git a/views/projectPost.ejs b/views/projectPost.ejs index 5e7af87..2f63fc5 100644 --- a/views/projectPost.ejs +++ b/views/projectPost.ejs @@ -11,6 +11,7 @@
+

<%= title %>

@@ -35,10 +36,10 @@ <% - var d = new Date(); - var n = d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2); - var t = d.toLocaleTimeString().slice(0, 5); - + // we need to populate the date- and timefield with the current time and date + var d = new Date(); + var n = d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2); + var t = d.toLocaleTimeString().slice(0, 5); %>
-- cgit v1.2.3