We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf5ec9 commit 172fcafCopy full SHA for 172fcaf
1 file changed
packages/hypergraph/src/utils/convert-property-value.ts
@@ -44,16 +44,10 @@ export const convertPropertyValue = (
44
if (propertyType.value === 'date') {
45
// Handle case where date is stored as string in the API
46
if (property.time != null) {
47
- const timeDate = new Date(property.time);
48
- if (!Number.isNaN(timeDate.getTime())) {
49
- return timeDate;
50
- }
51
52
- if (property.string != null && property.string !== '') {
53
- const stringDate = new Date(property.string);
54
- if (!Number.isNaN(stringDate.getTime())) {
55
- return stringDate;
56
+ return property.time;
+ }
+ if (property.string != null) {
57
}
58
return undefined;
59
0 commit comments