Hello!
I have a localized Scheduler to the Finnish language (locale="fi"). The Globalization/localization works fine in the main Scheduler, but when I open my custom editor template, the datetimepickers are still with the en-US values with AM/PM times and dates as MM/DD/YYYY. I have tried to set the localization to the datetimepicker but have not managed to get it working.
The input in my template (inside <ng-template #editorTemplate>) looks like this:
<input id="startTime" class="e-field" type="text" name="startTime" />
and in onPopupOpen() I have:
let startElement: HTMLInputElement = args.element.querySelector('#startTime') as HTMLInputElement;
if (!startElement.classList.contains('e-datetimepicker')) {
new DateTimePicker({ value: new Date(startElement.value) || new Date() }, startElement);
}
Also, the times that I choose in the calendar are 3 hours wrong: if I choose from the calendar a time 10AM-10.30AM, the values sent to the server are 7-7.30AM. Is this because the locale is wrong in the editor template? I have tried to set the timeZone: timezone="Europe/Helsinki", but it has no effect.
I hope you can help me.