- changes time from string format to timestamp for messages