Implement a Python function to clean and merge two mismatched time-series datasets without introducing look-ahead bias.