From a4ecff4e230633a6adfc38afec7d6e55934082fb Mon Sep 17 00:00:00 2001 From: Raffaele Spangaro Date: Wed, 7 Feb 2018 01:24:00 +0100 Subject: [PATCH] New options for european time format in in D3_TIME_FORMAT_OPTIONS (#4364) * Update installation.rst for Ubuntu 16.04 LTS Ubuntu 16.04 by default install python2.7 alongside with python 3.5 and set python2.7 as default. If you have created a virtualenv with python3.5 compilation fails due to wrong python-dev library installed. If you install ``python3.5-dev`` the build for the wheel package of ``cryptography`` run fine. * Add options in D3_TIME_FORMAT_OPTIONS for non-english Time Format. Added '%d/%m/%Y' and '%d/%m/%Y %H:%M:%S' as valid drop-down option for Axis Format --- superset/assets/javascripts/explore/stores/controls.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/assets/javascripts/explore/stores/controls.jsx b/superset/assets/javascripts/explore/stores/controls.jsx index 360220d21ddca..dd0c6bc640a20 100644 --- a/superset/assets/javascripts/explore/stores/controls.jsx +++ b/superset/assets/javascripts/explore/stores/controls.jsx @@ -26,9 +26,11 @@ const SERIES_LIMITS = [0, 5, 10, 25, 50, 100, 500]; export const D3_TIME_FORMAT_OPTIONS = [ ['smart_date', 'Adaptative formating'], + ['%d/%m/%Y', '%d/%m/%Y | 14/01/2019'], ['%m/%d/%Y', '%m/%d/%Y | 01/14/2019'], ['%Y-%m-%d', '%Y-%m-%d | 2019-01-14'], ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10'], + ['%d-%m-%Y %H:%M:%S', '%Y-%m-%d %H:%M:%S | 14-01-2019 01:32:10'], ['%H:%M:%S', '%H:%M:%S | 01:32:10'], ];