When using the Login UpdateProfile snippet the Date of birth field isn’t saving properly and will reset after the form is saved. If I set the date in the manager it fills into the form properly using the following input field.
The value for the “Date of birth” is stored in the database as a single number - a timestamp. (database table modx_user_attributes → column dob.)
Maybe when using “UpdateProfile” on the front-end, you have to do the conversion from a date to a timestamp manually (in a prehook snippet). Similar to how it is done when a user is saved in the manager:
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.