@eeacms/volto-clms-theme 1.1.264 → 1.1.265
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.265](https://github.com/eea/volto-clms-theme/compare/1.1.264...1.1.265) - 11 December 2025
|
|
8
|
+
|
|
7
9
|
### [1.1.264](https://github.com/eea/volto-clms-theme/compare/1.1.263...1.1.264) - 11 December 2025
|
|
8
10
|
|
|
9
11
|
### [1.1.263](https://github.com/eea/volto-clms-theme/compare/1.1.262...1.1.263) - 10 December 2025
|
package/package.json
CHANGED
|
@@ -62,14 +62,19 @@ export const cclTimeFormat = (date) => {
|
|
|
62
62
|
export const toUTCTimestamp = (date, isEndOfDay = false) => {
|
|
63
63
|
if (!date) return null;
|
|
64
64
|
|
|
65
|
-
//
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
if (isEndOfDay) {
|
|
71
|
-
offsetDate.setUTCHours(23, 59, 59, 999);
|
|
72
|
-
}
|
|
65
|
+
// Extract local calendar date components
|
|
66
|
+
const year = date.getFullYear();
|
|
67
|
+
const month = date.getMonth();
|
|
68
|
+
const day = date.getDate();
|
|
73
69
|
|
|
74
|
-
|
|
70
|
+
// Create UTC timestamp for that calendar date
|
|
71
|
+
return Date.UTC(
|
|
72
|
+
year,
|
|
73
|
+
month,
|
|
74
|
+
day,
|
|
75
|
+
isEndOfDay ? 23 : 0,
|
|
76
|
+
isEndOfDay ? 59 : 0,
|
|
77
|
+
isEndOfDay ? 59 : 0,
|
|
78
|
+
isEndOfDay ? 999 : 0,
|
|
79
|
+
);
|
|
75
80
|
};
|