In general, for this application, it will (should) be OK as the date is only ever populated in code. Of course, during testing I want to be able to edit it manually!
I am sure there are workarounds but really it shouldn't be happening at at all - if I type something into a field, I want it to stay like that!
If it looks like it won't be possible to / easy to fix, I will try changing the field to a label so that it can't be edited. However, that will cause trouble - I just know it will!!
Date string in text field being reformatted
I have a textstring field and want to store a formatted date in it - e.g.
However, when I save the node it gets reformatted to
Why is that happening? I have tried it on 3 different websites (v7.4.2 and v7.5.6 and v7.5.11).
It also happens in a textarea if there is no other text. It woks OK if the field is populated in code (controller / c#).
I have seen similar in the past, such as with this bug relating to JSON in text fields: http://issues.umbraco.org/issue/U4-7382
This seems like an Umbraco bug, so I'd recommend submitting a bug report. As to how this bug is occurring, I have some ideas:
Not really sure. Your best bet is the submit a bug report. I can give you some ideas if you are looking for workarounds.
Hi Nicholas,
I have submitted it as a bug - http://issues.umbraco.org/issue/U4-10067
In general, for this application, it will (should) be OK as the date is only ever populated in code. Of course, during testing I want to be able to edit it manually!
I am sure there are workarounds but really it shouldn't be happening at at all - if I type something into a field, I want it to stay like that!
If it looks like it won't be possible to / easy to fix, I will try changing the field to a label so that it can't be edited. However, that will cause trouble - I just know it will!!
is working on a reply...