Fix issue where timepart isn't always updated