How to write updated at timestamp in database?

If you change account information...
1. Login to the website frontend in a customer account.
Click on "Account information" and edit some information (firstname, lastname, ...).
Click on the save button.
Now login to the magento backend and click on customers -> manage customers.
Now you see the grid with the correct "updated_at" timestamp.

If you change your adressbook information...
2. Login to the website frontend again.
Click on "Account information"
And now click on "Addressbook" and edit some information.
Click on the save button.
Now go to the magento backend and click on customers -> manage customers. Updated_at is not changed.
How can we set new updated_at timestamp for the address book also?


Address is its own table and has its own updated_at field.
If i want to see the timestamp of customer updated when address is updated, i have to an observer for customer_save_after update the timestamp of customer there?
Can you tell me how we can setup an observer for customer_save_after update for the timestamp?
In which file i have to add the code?

Thank you and best wishes from germany

View more threads in the same category: