]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
use strftime js library
[chrisu/seepark.git] / web / static / seepark_web.js
index c762fb0d31b000d41f952f80052906eb530cea19..47bd334326207a051bfe7a2e5683ddc6553265ef 100644 (file)
@@ -80,7 +80,10 @@ function dayschart(element, title, days, xtickformat) {
                        x: {
                                type: 'timeseries',
                                tick: {
-                                       format: xtickformat,
+                                       format: function (d) {
+                                               var strftimeDE = strftime.localizeByIdentifier('de_DE');
+                                               return strftimeDE(xtickformat, new Date(d));
+                                       },
                                        fit: false,
                                        multiline: true, // broken? so →
                                        rotate: -90