superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: New options for european time format in in D3_TIME_FORMAT_OPTIONS (#4364)
Date Wed, 07 Feb 2018 00:24:05 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new a4ecff4  New options for european time format in in D3_TIME_FORMAT_OPTIONS (#4364)
a4ecff4 is described below

commit a4ecff4e230633a6adfc38afec7d6e55934082fb
Author: Raffaele Spangaro <keatch@gmail.com>
AuthorDate: Wed Feb 7 01:24:00 2018 +0100

    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 360220d..dd0c6bc 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'],
 ];
 

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message