modified_time not updating via script

modified_time not updating via script

When I change a record via script the modified_time is not updating.
Is this a know bug?
Is there a workaround?