When a new user is created the default entry for the date of birth field is: 0
In MODX 2.5.x if you had a new user who had not yet entered anything into their date of birth field the this code would result in an empty entry on the page (which is what I would like to see).
[[!+dob:date=`%d-%m-%Y`]]
Since updating to MODX version 2.6.5 the same code returns 01-01-1970 which is
technically correct, in that the Unix timestamp says that zero is 01-01-1970. But this is not what I want to see!
For a user who has not yet entered anything in their profile for date of birth it is a little odd for them to see 01-01-1970. So I would like to revert to the previous behavior where nothing is displayed.
Does anyone know how I can do this?
I would prefer not to have write snippet that converts 01-01-1970 to 'nothing' because one day someone may register on the site who was born on 01-01-1970 and their date of birth will then cause me problems!
PHP version 7.2.6 was used for both the 2.5.x and 2.6.5 versions of the MODX site in question.
[ed. note: andytough last edited this post 5 years, 9 months ago.]