From b9a0760d7e17134b0e685ee95128efd7c039169e Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 20 Oct 2015 16:17:57 +0300 Subject: [PATCH] Improve timezone handling: 1. Load all date/datetime values with moment.utc() which doesn't apply current timezone to them. 2. Don't use toLocaleString to format strings (which was converting them to current timezone as well). Ref #411. --- rd_ui/app/index.html | 2 +- rd_ui/app/scripts/app.js | 2 +- rd_ui/app/scripts/controllers/controllers.js | 5 +++-- rd_ui/app/scripts/controllers/query_source.js | 2 +- rd_ui/app/scripts/filters.js | 2 +- rd_ui/app/scripts/ng_highchart.js | 4 ++-- rd_ui/app/scripts/services/resources.js | 4 ++-- rd_ui/app/scripts/visualizations/table.js | 4 ++-- rd_ui/test/mocks/redash_mocks.js | 2 +- redash/handlers/static.py | 8 +++++--- redash/settings.py | 1 + 11 files changed, 20 insertions(+), 16 deletions(-) diff --git a/rd_ui/app/index.html b/rd_ui/app/index.html index 5e50b65a23..65d37874e6 100644 --- a/rd_ui/app/index.html +++ b/rd_ui/app/index.html @@ -200,7 +200,7 @@