diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-06 17:51:53 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-06 17:51:53 +0000 |
| commit | 731a9e48bb5cc21c0156b81fa1e027faee86ae0a (patch) | |
| tree | 27b79c1aab5463157ce2f868c5d14e0f3c1d12ef /app/lib/backend.js | |
| parent | 1f12c28f6f1ab841f96ed9fdee7a87f583358e28 (diff) | |
| download | mullvadvpn-731a9e48bb5cc21c0156b81fa1e027faee86ae0a.tar.xz mullvadvpn-731a9e48bb5cc21c0156b81fa1e027faee86ae0a.zip | |
Add 15 days instead of 1 month due to blurry boundaries between "a month" and "x days" when formatting
Diffstat (limited to 'app/lib/backend.js')
| -rw-r--r-- | app/lib/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 601b0e7b64..158828ab62 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -117,7 +117,7 @@ export default class Backend extends EventEmitter { let res = { account }; if(account.startsWith('1111')) { // accounts starting with 1111 expire in one month - res.paidUntil = moment().add(1, 'month').millisecond(0).toISOString(); + res.paidUntil = moment().startOf('day').add(15, 'days').toISOString(); } else if(account.startsWith('2222')) { // expired in 2013 res.paidUntil = moment('2013-01-01').toISOString(); } else if(account.startsWith('3333')) { // expire in 2038 |
