Fix hour lag problem. Also fixed problem for retreiving hourly data at the beginning of the year.