1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 10:49:39 +02:00

Replace more occurrences of new Date().getTime() with System.currentTimeMillis()

This commit is contained in:
Paul Schaub 2023-06-02 00:03:55 +02:00
parent d25e7419c9
commit e1038a8bb3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 9 additions and 9 deletions

View file

@ -155,7 +155,7 @@ public class ChangeExpirationOnKeyWithDifferentSignatureTypesTest {
private void executeTestForKeys(PGPSecretKeyRing keys, SecretKeyRingProtector protector)
throws PGPException {
Date expirationDate = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 14);
Date expirationDate = new Date(System.currentTimeMillis() + 1000 * 60 * 60 * 24 * 14);
// round date for test stability
expirationDate = DateUtil.toSecondsPrecision(expirationDate);