Refactors cursor handling to use setCursor instead of setSelection when collapsing selections Improves timestamp generation by using environment's default locale automatically instead of manually specifying language Enhances code clarity and simplifies locale handling for timestamp formatting