ICU-4378 Fix incorrect time calculation for uprv_getUTCtime.

Keep code commented out for now.

X-SVN-Rev: 17378
This commit is contained in:
George Rhoten 2005-03-23 07:45:55 +00:00
parent 546bb158a8
commit b6b99a8083

View File

@ -255,7 +255,7 @@ uprv_getUTCtime()
/*
struct timeval posixTime;
gettimeofday(&posixTime, NULL);
return ((UDate)posixTime.tv_sec * U_MILLIS_PER_SECOND) + ((UDate)posixTime.tv_usec/1000);
return (UDate)(((int64_t)posixTime.tv_sec * U_MILLIS_PER_SECOND) + (posixTime.tv_usec/1000));
*/
time_t epochtime;
time(&epochtime);