move time_conversion function to utilities, and update legacy data script accordingly