Fixed a problem that Date.getTime returned negative value when it is set to over the year 2038.