standardize the timestamp to milliseconds, adjust code because rails likes to think of epoch in seconds.