modify date format
[cavote.git] / main.py
diff --git a/main.py b/main.py
index bd87c9a..c1ba962 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -38,8 +38,10 @@ def show_votes():
 def add_vote():
     if not session.get('logged_in'):
         abort(401)
+    daten = date.today() + timedelta(days=60)
+    ndate = daten.strftime('%d %B %Y')
     g.db.execute('insert into votes (title, description, date) values (?, ?, ?)',
-            [request.form['title'], request.form['description'], date.today() + timedelta(days=60)])
+            [request.form['title'], request.form['description'], ndate])
     g.db.commit()
     flash('New entry was successfully posted')
     return redirect(url_for('show_votes'))