mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-22 11:54:03 +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:
@@ -122,7 +122,7 @@ public class OSAPI implements ILuaAPI {
|
||||
}
|
||||
|
||||
private static long getEpochForCalendar(Calendar c) {
|
||||
return c.getTime().getTime();
|
||||
return c.getTimeInMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user