[#13131] - LocalDate and LocalDateTime doesn't work

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

<field name="anydate" class="java.time.LocalDate">
<fieldDescription><![CDATA[anydate]]></fieldDescription>
</field>

doesn't work für LocalDate.
There is no import of data with LocalDate, LocalDateTime.

we need the workaround

<field name="anydate" class="java.lang.String">
<fieldDescription><![CDATA[anydate]]></fieldDescription>
</field>

and later

<variable name="anydate" class="java.time.LocalDate">
<variableExpression><![CDATA[java.time.LocalDate.parse($F{anydate}, java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))]]></variableExpression>
</variable>

So we import the date as string and later bring it to LocalDate.

vanselow's picture
Joined: Oct 2 2020 - 3:00am
Last seen: 2 weeks 3 days ago
Feedback