Remove seconds and milliseconds when saving settigns