changed how iat is generated

old code results to this error: Invalid+iat+parameter.+The+supplied+iat+value+is+more+than+3+minutes+off%2C+check+your+server+clock.&kind=error