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:
parent
d25e7419c9
commit
e1038a8bb3
2 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue