bugfix - timestamp int to long conversion