Print this page

LastModifiedDate of Apex classes/triggers changes after deployment even if they haven't been updated

Knowledge Article Number 000188554
When an Apex class/trigger is deployed, the LastModifiedDate on the Apex class/trigger in the organization gets updated even if the Apex class/trigger being deployed is identical to the existing one in the organization.
Resolution This is working as designed. LastModifiedDate was not intended to be used as a guarantee of similarity when comparing pre-deploy and post-deploy results, which should be taken into consideration by developers using versioning systems.

promote demote