Introduced date format bug since one of the latest versions

After upgrade a date field is not displayed correctly:

date field from MySQL database put into custom field

display format YYYY (year only)
on screen the output is 2014, correct

Then I use the content to put the field on a pdf

output is 2014MMDD in stead of 2014

This used to be correct, however the MMDD need to disappear. I can do by setting the internal format to YYYY too, which in fact is not correct since it’s not a correct internal format (not intended for use this way)