Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Accept local date times without seconds
  • Loading branch information
alexarchambault committed Oct 19, 2020
commit c73121008ce0e41aac42b64a8b3e98b808cb3ed3
2 changes: 2 additions & 0 deletions core/shared/src/main/scala/plotly/element/LocalDateTime.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ object LocalDateTime extends PlotlyJavaTimeConversions {
(d.split('-'), t.split(':')) match {
case (Array(IntStr(y), IntStr(m), IntStr(d)), Array(IntStr(h), IntStr(min), IntStr(s))) =>
Some(LocalDateTime(y, m, d, h, min, s))
case (Array(IntStr(y), IntStr(m), IntStr(d)), Array(IntStr(h), IntStr(min))) =>
Some(LocalDateTime(y, m, d, h, min, 0))
case _ => None
}
case _ => None
Expand Down