added test for if mac then convert milliseconds to seconds because OSX
date conversion does not support milliseconds