use currentTimeMillis() for time

Everybody else does....
This commit is contained in:
Eric House 2017-12-27 14:43:25 -08:00
parent 17f27a1b65
commit 9fd4a90ccd

View file

@ -443,7 +443,7 @@ public class Utils {
{
// Note: an int is big enough for *seconds* (not milliseconds) since 1970
// until 2038
long millis = new Date().getTime();
long millis = System.currentTimeMillis();
int result = (int)(millis / 1000);
return result;
}