ICU-4378 Fix incorrect time calculation for uprv_getUTCtime.
Keep code commented out for now. X-SVN-Rev: 17378
This commit is contained in:
parent
546bb158a8
commit
b6b99a8083
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user