From d26f1d29c739bacdfe03d76ae4cabe677b1e1d6d Mon Sep 17 00:00:00 2001
From: "martin f. krafft" <madduck@madduck.net>
Date: Sun, 12 Nov 2023 11:00:35 +0100
Subject: [PATCH] Pass a Timestamp to set-date, not a Long

Signed-off-by: martin f. krafft <madduck@madduck.net>
---
 .../src/main/scala/docspell/website/AddonOutputExample.scala   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/website/src/main/scala/docspell/website/AddonOutputExample.scala b/website/src/main/scala/docspell/website/AddonOutputExample.scala
index c752d465..7cdf6e67 100644
--- a/website/src/main/scala/docspell/website/AddonOutputExample.scala
+++ b/website/src/main/scala/docspell/website/AddonOutputExample.scala
@@ -5,6 +5,7 @@ import docspell.addons.out.{AddonOutput, ItemFile, NewFile, NewItem}
 import docspell.addons.out.NewFile.{Meta => FileMeta}
 import docspell.addons.out.NewItem.{Meta => ItemMeta}
 import docspell.common._
+import docspell.common.Timestamp
 import docspell.common.bc.{AttachmentAction, BackendCommand, ItemAction}
 import io.circe.syntax._
 
@@ -15,7 +16,7 @@ object AddonOutputExample extends Helper {
       BackendCommand.ItemUpdate(
         itemId = id("XabZ-item-id"),
         actions = List(
-          ItemAction.SetDate(1699632496000L),
+          ItemAction.SetDate(Timestamp.ofMillis(1699697471000L)),
           ItemAction.AddTags(Set("tag1", "tag2")),
           ItemAction.ReplaceTags(Set("tagX", "tagY")),
           ItemAction.RemoveTags(Set("tag0", "tag9")),