From af4513212d358915ae5b8fa90c32adfd93b3a8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 12:43:01 +0900 Subject: [PATCH] =?UTF-8?q?=E9=81=A9=E5=BD=93=E3=81=AA=E6=97=A5=E4=BB=98?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java index 4fb47e3e..55129bba 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryStubImpl.java @@ -10,8 +10,10 @@ import one.nem.lacerta.model.document.DocumentMeta; import one.nem.lacerta.model.document.path.DocumentPath; import one.nem.lacerta.utils.LacertaLogger; +import com.github.javafaker.DateAndTime; import com.github.javafaker.Faker; +import java.text.DateFormat; import java.util.ArrayList; import java.util.Objects; import java.util.UUID; @@ -84,14 +86,14 @@ public class LacertaLibraryStubImpl implements LacertaLibrary { if (itemType == ListItemType.ITEM_TYPE_FOLDER) { ListItem listItem = new ListItem(); listItem.setTitle("FakeFolder" + faker.number().digits(3)); - listItem.setDescription("Updated at " + faker.date().toString()); + listItem.setDescription("Updated at " + DateFormat.getDateTimeInstance().format(faker.date().birthday())); listItem.setItemType(ListItemType.ITEM_TYPE_FOLDER); listItem.setItemId(UUID.randomUUID().toString()); return listItem; } else if (itemType == ListItemType.ITEM_TYPE_DOCUMENT) { ListItem listItem = new ListItem(); listItem.setTitle("FakeDocument" + faker.book().title()); - listItem.setDescription("Updated at " + faker.date().toString()); + listItem.setDescription("Updated at " + DateFormat.getDateTimeInstance().format(faker.date().birthday())); listItem.setItemType(ListItemType.ITEM_TYPE_DOCUMENT); listItem.setItemId(UUID.randomUUID().toString()); return listItem;