From 6d768658bda7d23ef0053efc6bd47055fa1d9c18 Mon Sep 17 00:00:00 2001
From: Benjamin Renard <benjamin.renard@akka.eu>
Date: Mon, 18 Nov 2024 08:25:35 +0000
Subject: [PATCH] Fix bug with interval selection for Zoom and milliseconds

---
 js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js b/js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js
index 10244aa..abc0524 100644
--- a/js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js
+++ b/js/app/views/PlotComponents/intervalSelection/ZoomIntervalSelection.js
@@ -30,13 +30,17 @@ Ext.define('amdaPlotComp.intervalSelection.ZoomIntervalSelection', {
         if (this._notValidValues()) {
             myDesktopApp.warningMsg('The Input Values are not defined');
         } else {
+
+            var minVal = Ext.Date.format(this.getField1Value(), 'Y-m-d\\TH:i:s.u');
+            var maxVal = Ext.Date.format(this.getField2Value(), 'Y-m-d\\TH:i:s.u');
+
             this.hostCmp.callInteractivePlot({
                 'action': 'zoom',
                 'interactiveId': this.interactiveId,
                 'panelId': this.panelId,
                 'axeId': this.type,
-                'min': this.getField1Value(),
-                'max': this.getField2Value()
+                'min': minVal,
+                'max': maxVal
             });
 
             this._resetHostCmpSelection();
--
libgit2 0.21.2