fixed an error in the units param
refactored data gap filling methods to consider the case of previous dates
not using GMT to local time conversion since DateFormat uses locale