Time-Parsing with `provideLuxonDatetimeAdapter`
Closed this issue · 4 comments
angelaki commented
In your demo (https://ng-matero.github.io/extensions/components/datetimepicker/overview) I can put quite simple formats and the component / the adapter tries it's best to find the correct value (e.g. time-input 7 gets pared to 07:00. But using your LuxonDatetimeAdapter
it seams like I need to put in the absolute correct format.
Is this an issue of this adapter? Or am I configuring something wrong?
nzbin commented
Can you provide an online example?
angelaki commented
Just cloned your repo and just needed to change that single line:
Replace it with provideLuxonDatetimeAdapter
and you'll notice that from now on you need to pass the exact format on input while with the provideMomentDatetimeAdapter
the input gets parsed / auto-corrected.