From 9ec8672d21ed3305aabb183908c762c169cd94a7 Mon Sep 17 00:00:00 2001
From: Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com>
Date: Fri, 14 Mar 2014 19:59:16 +0100
Subject: [PATCH] fixed date format for datepicker

---
 program/templates/day_schedule.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/program/templates/day_schedule.html b/program/templates/day_schedule.html
index cef60ba2..f8d517cd 100644
--- a/program/templates/day_schedule.html
+++ b/program/templates/day_schedule.html
@@ -9,9 +9,10 @@
   <script type="text/javascript">
 jQuery(document).ready(function() {
     jQuery("#calendar").datepicker({
-        defaultDate: location.href.split('/').slice(4, 7).reverse().join('.'),
+	dateFormat: "yy.mm.dd",
+        defaultDate: location.href.split('/').slice(4, 7).join('.'),
         onSelect: function(dateText, inst) {
-            location = '/programm/' + dateText.split('.').reverse().join('/');
+            location = '/programm/' + dateText.split('.').join('/');
         }
     });
 });
-- 
GitLab