[Fix] Fixed ZonedDateTime field

This commit is contained in:
Robert von Burg 2022-11-18 10:29:48 +01:00
parent 43ada810fb
commit 04af0964ef
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -46,3 +46,5 @@ Thumbs.db
# Netbeans IDE files
/nbproject/private/
/nbproject/
*.lock

View File

@ -35,7 +35,7 @@ public class Test {
public static void main(String[] args) {
try (StrolchTransaction tx = openTx(realmName)) {
Resource resource = tx.getResourceBy("MyType", "myResource");
Date date = resource.getDate("myBag", "myParam1");
ZonedDateTime date = resource.getDate("myBag", "myParam1");
logger.info("myParam date has value " + date);
}
}