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:
parent
80c7a54ad4
commit
43770fa9bd
@ -122,7 +122,7 @@ public class OSAPI implements ILuaAPI {
|
||||
}
|
||||
|
||||
private static long getEpochForCalendar(Calendar c) {
|
||||
return c.getTime().getTime();
|
||||
return c.getTimeInMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user