I have made a custom datatype using the umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor. The control is a calendar controll, but when a save a node, the day and month is swapping. This is not happening when I publish.
Why is this happening?
public partial class RDateTime : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor { protected void Page_Load(object sender, EventArgs e) {
}
public object value { get { return Dato.SelectedDate; } set { oldValue.Text = value.ToString(); } } } }
Custom calendar datatype swapping day and month?
I have made a custom datatype using the umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor. The control is a calendar controll, but when a save a node, the day and month is swapping. This is not happening when I publish.
Why is this happening?
This is a simplyfied version of the sourcecode.
Umbraco version 4.0.3
This is a bug in v4.0.3 and the cause has been fixed.
This thread might help:
http://our.umbraco.org/forum/templating/templates-and-document-types/5934-Date-Picker-doesn't-work?p=0#comment21894
is working on a reply...