Skip to content

Commit

Permalink
Remove usage of deprecated legacy Java Date API
Browse files Browse the repository at this point in the history
I've been staring at this warning for years, and ignored it thinking it
would be a pain to fix. I'm a fool!
  • Loading branch information
SquidDev committed Aug 18, 2024
1 parent 80c7a54 commit 43770fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static int getDayForCalendar(Calendar c) {
}

private static long getEpochForCalendar(Calendar c) {
return c.getTime().getTime();
return c.getTimeInMillis();
}

/**
Expand Down

0 comments on commit 43770fa

Please sign in to comment.