Custom Date Attribute not working.

Permalink
Hi can anyone help me. I am having a very odd issue when trying to use a Custom Date Attribute.

When I add a page I pick a start date using the Custom Date Attribute I have created. The page is then published fine. The issue I am having is, if I come back to the page and want to make changes to the Attributes, I can't the panel wont open. I also cannot open the page up in composer.

It just keeps loading. Pus composer just opens blank.

Whats going on?

 
ramonleenders replied on at Permalink Reply
ramonleenders
Hit F12 to pop up the developer tools. Then look for errors in "Console" tab or leave the "Network" tab open when you open up composer and see if you get a request which is red (meaning it got errors).
JackVanson replied on at Permalink Reply 1 Attachment
Thanks for your quick reply.

This is the error i get.

GEThttps://uat.sapphiresystems.com/index.php/ccm/system/dialogs/page/at... 500 (Internal Server Error)

Network Error: {"error":{"message":"Can't convert '31\/03\/2017, 11:30' to a \\DateTime"},"errors":["Can't convert '31\/03\/2017, 11:30' to a \\DateTime"]}

Im not sure why that is or how to fix it. any ideas?
JackVanson replied on at Permalink Reply 1 Attachment
This is the Attribute I have created and trying to use. See attached.

I have cleared the cache many times.
ramonleenders replied on at Permalink Reply
ramonleenders
Well, no idea what code you run. But the string given, can't be converted to a date time. Did you create the code yourself, did you download it, where can it be found?
JackVanson replied on at Permalink Reply
No I just created in using the add Attribute within Attributes on Concrete5
ramonleenders replied on at Permalink Reply
ramonleenders
Your datetime string is "31/03/2017, 11:30". Seems like that can't be converted to a proper "time". Not sure why though... Maybe someone else can help you with that.
JackVanson replied on at Permalink Reply
Okay thank you for your help. Lets hope someone else will see this post and can help :)
mlocati replied on at Permalink Reply
mlocati
It was a problem with the translation file, that should have been fixed for British English locales (if you download the correct translation file fromhttps://translate.concrete5.org... ). But maybe this problem exists for other languages too.

A more generic solution for this issue ishttps://github.com/concrete5/concrete5/pull/5240...