adding local time formatter for db