diff options
Diffstat (limited to '')
| -rw-r--r-- | lang/js/src/Keyring.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js index 90d267db..7d9b370a 100644 --- a/lang/js/src/Keyring.js +++ b/lang/js/src/Keyring.js @@ -388,8 +388,9 @@ export class GPGME_Keyring {              msg.setParameter('userid', userId);              msg.setParameter('algo', algo );              if (expires){ +                const now = new Date();                  msg.setParameter('expires', -                    Math.floor(expires.valueOf()/1000)); +                    Math.floor((expires - now) /1000));              } else {                  msg.setParameter('expires', 0);              } | 
