Fixed one hour difference between SD card data
and gateway data. Was writing GW data an hour in advance.For SD card cred fixed so that credit is from the beginning of hour and not the end.