1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

use System.currentTimeMillis() instead of Date.getTime()

This commit is contained in:
2024-08-03 23:30:51 +03:00
parent ac9189ecdc
commit 84da16fae6

View File

@@ -19,8 +19,7 @@ public final class WebUtils {
public static final String USER_AGENT;
static {
var date = new Date();
USER_AGENT = String.format("SkinRestorer/%d", date.getTime() % 65535);
USER_AGENT = String.format("SkinRestorer/%d", System.currentTimeMillis() % 65535);
var builder = HttpClient.newBuilder();
var proxy = SkinRestorer.getConfig().getProxy();