Skip to content

Commit 60e61f7

Browse files
tcitworldsusnux
authored andcommitted
fix: fix original date time filter type
There's no way to provide the date for the nc:metadata-photos-original_date_time property as ISO8601, only int and timestamp is allowed. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent ca96507 commit 60e61f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/PhotoSearch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ export default async function(_options: Partial<PhotoSearchOptions> = {}): Promi
7272
<d:prop>
7373
<nc:metadata-photos-original_date_time/>
7474
</d:prop>
75-
<d:literal>${start.format(moment.defaultFormatUtc)}</d:literal>
75+
<d:literal>${start.valueOf() / 1000}</d:literal>
7676
</d:gt>
7777
<d:lt>
7878
<d:prop>
7979
<nc:metadata-photos-original_date_time/>
8080
</d:prop>
81-
<d:literal>${end.format(moment.defaultFormatUtc)}</d:literal>
81+
<d:literal>${end.valueOf() / 1000}</d:literal>
8282
</d:lt>
8383
</d:and>`
8484
}).join('\n')}</d:or>`

0 commit comments

Comments
 (0)