chozma
Member
Hi guys,
I've got a weird issue with a birthday element. I'm sure this used to work but for some reason it isn't anymore... But then again maybe I am going mad. It wouldn't be the first time that building sites has sent me mad.
So... the issue is quite straightforward - I have a birthday element in a form. It displays and saves fine in the form. But when I go to use that element in a custom details template it is spitting out a weird date.
I can see that in PHPMyAdmin the date is stored as I would expect and I attach a screenshot of a var_dump of the element in question. You can see that element_raw is exactly what I see in PHPMyAdmin so that's good. But element_ro and value are 'wonky'!
I have also attached a screenshot of the settings for this element. Perhaps it is the translation of the raw date into the format required that is going wrong?
Any ideas?
Thanks as always for your excellent support,
Hannah
I've got a weird issue with a birthday element. I'm sure this used to work but for some reason it isn't anymore... But then again maybe I am going mad. It wouldn't be the first time that building sites has sent me mad.
So... the issue is quite straightforward - I have a birthday element in a form. It displays and saves fine in the form. But when I go to use that element in a custom details template it is spitting out a weird date.
I can see that in PHPMyAdmin the date is stored as I would expect and I attach a screenshot of a var_dump of the element in question. You can see that element_raw is exactly what I see in PHPMyAdmin so that's good. But element_ro and value are 'wonky'!
I have also attached a screenshot of the settings for this element. Perhaps it is the translation of the raw date into the format required that is going wrong?
Any ideas?
Thanks as always for your excellent support,
Hannah