1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-09 00:40:29 +00:00

Remove usage of deprecated legacy Java Date API

I've been staring at this warning for years, and ignored it thinking it
would be a pain to fix. I'm a fool!
This commit is contained in:
Jonathan Coates 2024-08-18 12:56:36 +01:00
parent 80c7a54ad4
commit 43770fa9bd
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -122,7 +122,7 @@ public class OSAPI implements ILuaAPI {
}
private static long getEpochForCalendar(Calendar c) {
return c.getTime().getTime();
return c.getTimeInMillis();
}
/**