@eeacms/volto-clms-theme 1.1.266 → 1.1.267
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.1.267](https://github.com/eea/volto-clms-theme/compare/1.1.266...1.1.267) - 16 December 2025
|
|
8
|
+
|
|
7
9
|
### [1.1.266](https://github.com/eea/volto-clms-theme/compare/1.1.265...1.1.266) - 11 December 2025
|
|
8
10
|
|
|
9
11
|
### [1.1.265](https://github.com/eea/volto-clms-theme/compare/1.1.264...1.1.265) - 11 December 2025
|
package/package.json
CHANGED
|
@@ -28,6 +28,17 @@ export const TimeseriesPicker = (props) => {
|
|
|
28
28
|
);
|
|
29
29
|
const [isOpen, setIsOpen] = useState(false);
|
|
30
30
|
|
|
31
|
+
const toISOIgnoreTimezone = (inputDate) => {
|
|
32
|
+
return (
|
|
33
|
+
inputDate.getFullYear() +
|
|
34
|
+
'-' +
|
|
35
|
+
('0' + (inputDate.getMonth() + 1)).slice(-2) +
|
|
36
|
+
'-' +
|
|
37
|
+
('0' + inputDate.getDate()).slice(-2) +
|
|
38
|
+
'T00:00:00.000Z'
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
31
42
|
const isValidDateRange = ({ start, end, limit }) => {
|
|
32
43
|
/* Calculate if the difference in days is smaller than the allowed limit */
|
|
33
44
|
const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds
|
|
@@ -121,6 +132,7 @@ export const TimeseriesPicker = (props) => {
|
|
|
121
132
|
download_limit_temporal_extent < 180 ? dates_array : null
|
|
122
133
|
}
|
|
123
134
|
disabledKeyboardNavigation
|
|
135
|
+
timeZone="UTC"
|
|
124
136
|
>
|
|
125
137
|
{(item?.TemporalFilter?.StartDate ||
|
|
126
138
|
item?.TemporalFilter?.EndDate) && (
|
|
@@ -192,12 +204,12 @@ export const TimeseriesPicker = (props) => {
|
|
|
192
204
|
}
|
|
193
205
|
onClick={() => {
|
|
194
206
|
item.TemporalFilter = {
|
|
195
|
-
StartDate: startValue,
|
|
196
|
-
EndDate: endValue,
|
|
207
|
+
StartDate: toISOIgnoreTimezone(startValue),
|
|
208
|
+
EndDate: toISOIgnoreTimezone(endValue),
|
|
197
209
|
};
|
|
198
210
|
setTimeseriesValue(item.unique_id, {
|
|
199
|
-
StartDate: startValue,
|
|
200
|
-
EndDate: endValue,
|
|
211
|
+
StartDate: toISOIgnoreTimezone(startValue),
|
|
212
|
+
EndDate: toISOIgnoreTimezone(endValue),
|
|
201
213
|
});
|
|
202
214
|
setIsOpen(false);
|
|
203
215
|
}}
|