Skip to content

Commit

Permalink
Merge pull request #599 from nfdi4plants/Bug-TimeSubmissionExchanged
Browse files Browse the repository at this point in the history
Fixed datetime definition string
  • Loading branch information
Freymaurer authored Jan 9, 2025
2 parents e150c5b + 16eabb9 commit 2663218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/SharedComponents/Metadata/Forms.fs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ type FormComponents =
prop.type'.dateTimeLocal
prop.ref ref
prop.onChange(fun (e: System.DateTime) ->
let dtString = e.ToString("yyyy-MM-ddThh:mm")
let dtString = e.ToString("yyyy-MM-ddTHH:mm")
onChange dtString
)
]
Expand All @@ -705,7 +705,7 @@ type FormComponents =

static member DateTimeInput (input: System.DateTime, setter: System.DateTime -> unit, ?label: string) =
FormComponents.DateTimeInput(
input.ToString("yyyy-MM-ddThh:mm"),
input.ToString("yyyy-MM-ddTHH:mm"),
(fun (s: string) ->
setter (System.DateTime.Parse(s))),
?label=label
Expand Down

0 comments on commit 2663218

Please sign in to comment.