Add support for saving time format to local storage