mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 00:08:51 -05:00
Make sure to parse large numbers
This commit is contained in:
parent
a7a2993c44
commit
41eb392390
@ -36,16 +36,16 @@ public class License implements Serializable {
|
||||
|
||||
private byte[] bytes;
|
||||
|
||||
private int id;
|
||||
private long id;
|
||||
private long expires;
|
||||
|
||||
public License(byte[] bytes) throws Exception {
|
||||
this.bytes = bytes;
|
||||
|
||||
// verify and get clear sign content
|
||||
// verify and get clear signed content
|
||||
Map<String, String> properties = getProperties();
|
||||
|
||||
this.id = Integer.parseInt(properties.get("Order"));
|
||||
this.id = Long.parseLong(properties.get("Order"));
|
||||
this.expires = LocalDate.parse(properties.get("Valid-Until"), DateTimeFormatter.ISO_LOCAL_DATE).atStartOfDay(ZoneOffset.UTC).plusDays(1).minusSeconds(1).toInstant().toEpochMilli();
|
||||
|
||||
// verify license online
|
||||
|
Loading…
Reference in New Issue
Block a user