fixing time format (a real pain)