DRY - use one method for time formating