This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-383
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-383 by this push:
new fdb2e27 WIP.
fdb2e27 is described below
commit fdb2e27679b66ffac42e5042ca3ec5654d2d644d
Author: Sergey Kamov <[email protected]>
AuthorDate: Fri Aug 6 19:30:58 2021 +0300
WIP.
---
.../apache/nlpcraft/examples/solarsystem/SolarSystemModel.scala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/SolarSystemModel.scala
b/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/SolarSystemModel.scala
index a28e4b6..7d2a56d 100644
---
a/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/SolarSystemModel.scala
+++
b/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/SolarSystemModel.scala
@@ -22,7 +22,7 @@ import
org.apache.nlpcraft.examples.solarsystem.tools.SolarSystemOpenApiService
import org.apache.nlpcraft.model.{NCIntent, NCIntentSample, NCIntentTerm,
NCModelFileAdapter, NCResult, NCToken}
import java.time.format.{DateTimeFormatter, DateTimeFormatterBuilder,
DateTimeParseException}
-import java.time.temporal.ChronoField
+import java.time.temporal.ChronoField._
import java.time.{LocalDate, ZoneOffset}
class SolarSystemModel extends NCModelFileAdapter("solarsystem_model.yaml")
with LazyLogging {
@@ -98,12 +98,12 @@ class SolarSystemModel extends
NCModelFileAdapter("solarsystem_model.yaml") with
DateTimeFormatter.ofPattern("dd/MM/yyyy"),
new DateTimeFormatterBuilder().
appendPattern("yyyy").
- parseDefaulting(ChronoField.MONTH_OF_YEAR, 1).
- parseDefaulting(ChronoField.DAY_OF_MONTH, 1).
+ parseDefaulting(MONTH_OF_YEAR, 1).
+ parseDefaulting(DAY_OF_MONTH, 1).
toFormatter(),
new DateTimeFormatterBuilder().
appendPattern("??/MM/yyyy").
- parseDefaulting(ChronoField.DAY_OF_MONTH, 1).
+ parseDefaulting(DAY_OF_MONTH, 1).
toFormatter()
)