From 82590632b6f1bb810b387da47b350694642df8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Wed, 10 May 2023 11:31:28 +0200 Subject: [PATCH] Always use UTC for doc timestamps --- services/search/pkg/content/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/search/pkg/content/basic.go b/services/search/pkg/content/basic.go index 0130584bab..42e2952200 100644 --- a/services/search/pkg/content/basic.go +++ b/services/search/pkg/content/basic.go @@ -35,7 +35,7 @@ func (b Basic) Extract(_ context.Context, ri *storageProvider.ResourceInfo) (Doc } if ri.Mtime != nil { - doc.Mtime = utils.TSToTime(ri.Mtime).Format(time.RFC3339Nano) + doc.Mtime = utils.TSToTime(ri.Mtime).UTC().Format(time.RFC3339Nano) } return doc, nil