Skip to content

Commit

Permalink
Merge pull request #768 from ie3-institute/to/#767-config-date-time
Browse files Browse the repository at this point in the history
Correct time pattern hint
  • Loading branch information
staudtMarius committed Apr 25, 2024
2 parents 8f73349 + c144ead commit f47f62c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed some compiler warnings [#657](https://github.com/ie3-institute/simona/issues/657)
- Fixing false negative in ref system voltage validation [#706](https://github.com/ie3-institute/simona/issues/706)
- Fixing randomly failing test in `RuntimeEventListenerSpec` etc. [#709](https://github.com/ie3-institute/simona/issues/709)
- Fixed config start and end datetime parsing hint [#767](https://github.com/ie3-institute/simona/issues/767)

## [3.0.0] - 2023-08-07

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/edu/ie3/simona/config/ConfigFailFast.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ case object ConfigFailFast extends LazyLogging {
case e: DateTimeParseException =>
throw new InvalidConfigParameterException(
s"Invalid dateTimeString: $dateTimeString." +
s"Please ensure that your date/time parameter match the following pattern: 'yyyy-MM-dd HH:mm:ss'",
s"Please ensure that your date/time parameter match the following pattern: 'yyyy-MM-dd'T'HH:mm:ss'Z''",
e,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ConfigFailFastSpec extends UnitSpec with ConfigTestData {
"total non-sense"
)
}.getMessage shouldBe "Invalid dateTimeString: total non-sense." +
"Please ensure that your date/time parameter match the following pattern: 'yyyy-MM-dd HH:mm:ss'"
"Please ensure that your date/time parameter match the following pattern: 'yyyy-MM-dd'T'HH:mm:ss'Z''"
}
}

Expand Down

0 comments on commit f47f62c

Please sign in to comment.