rez_core 4.0.210 → 4.0.211

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "4.0.210",
3
+ "version": "4.0.211",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -91,12 +91,17 @@ export class ResolverService {
91
91
  attr.element_type === 'date' ||
92
92
  attr.element_type === 'datetime'
93
93
  ) {
94
- const dateValue = moment(codeValue).utcOffset('+05:30'); // IST
94
+ // 👇 Explicitly define input format to avoid deprecation warning
95
+ const dateValue = moment(codeValue, "DD-MM-YYYY", true).utcOffset('+05:30');
96
+
95
97
  if (dateValue.isValid()) {
96
98
  resolvedEntityData[field] =
97
99
  attr.element_type === 'date'
98
100
  ? dateValue.format('DD-MMM-YYYY')
99
101
  : dateValue.format('DD-MMM-YYYY HH:mm:ss');
102
+ } else {
103
+ // fallback: return original value
104
+ resolvedEntityData[field] = codeValue;
100
105
  }
101
106
  }
102
107