U4-7523 - Datetimepicker doesn't fill value property

Created by Graziano Tona 10 Dec 2015, 16:32:57 Updated by Sebastiaan Janssen 25 Jan 2016, 08:32:50

Duplicates: U4-6953

In a custom section in backoffice I'm implementing an edit page. I have many date time fields to edit and I used the datetime picker property editor that I initialize in my custom angular controller with an empty value. Here the function i use: function generateDatePicker(label, value, format, mandatory) { return [ { label: label, view: 'datepicker', config: , validation: , hideLabel: false, value: value } ]; } I expected that when i select a date and a time the value property is fulfilled, but this doesn't happen. I hacked as suggested in this post : https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type/questions-bugs-issues-feedback/70317-datepicker-not-populating-correctly-umbraco-728. Will this behavior will be corrected? Thanks for kind answer and best regards. G.


Sebastiaan Janssen 10 Dec 2015, 16:47:08

Thanks, this has been fixed in Umbraco 7.3.0, see issue U4-6953

Graziano Tona 11 Dec 2015, 09:59:31

Tahnk you for quick replay. I noticed that my mistake was that i did not use "formHelper.submitForm" for firing the formSubmitting event that fullfills the property. I thought wrongly that value was assigned in change event. Regards. G.

Graziano Tona 16 Dec 2015, 16:27:06

Hi Sebastiaan just another questoin, I'm populating the value of DateTimePicker with values coming from a json (ISO 8601 format). If I save I get "Invalid Date", if I change it from UI it works fine? Thanks for kind answer and best regards. G.

Graziano Tona 17 Dec 2015, 11:36:02

After investigating I noticed this behaviour that I think is a bug. 1)in the function generateDatePicker mentioned above the value passed is for example "2015-12-17T00:00:00Z". 2)The picker displays "2015-12-17 01:00:00" (User locale en ui culture en culture en, but we are in Italy: UTC+1). 3)Opening the time picker section shows 00:00:00 (not according with what displayed in the input). 4)Saving without changing the picker value with UI correctly doesn't change original date. 5)Selecting on UI for example 00:00:01 and then back 00:00:00 and then saving we otain same value in UI and in widget value property.

Hoping this helps, thanks and regards. G.

Graziano Tona 15 Jan 2016, 16:07:39

@sebastiaan , hi, any news for this issue? Thank you very much. G.

Shannon Deminick 20 Jan 2016, 17:14:58

Did you try 7.3.5 ?

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal

Category: Extensibility

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.8, 7.3.1, 7.3.2, 7.3.3, 7.3.4

Due in version:


Story Points: