Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Christoffersen 64 posts 119 karma points
    Jan 08, 2010 @ 17:47
    Dan Christoffersen
    0

    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?

        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();
                }
            }
        }
    }

    This is a simplyfied version of the sourcecode.

     

    Umbraco version 4.0.3

  • Chad Rosenthal 272 posts 474 karma points
    Jan 08, 2010 @ 18:35
    Chad Rosenthal
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies