Skip to content

Commit 22447bc

Browse files
committed
Fix refresh zcap date parsing bug.
1 parent 9045232 commit 22447bc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-profile-http ChangeLog
22

3+
## 26.2.3 - 2026-mm-dd
4+
5+
### Fixed
6+
- Fix refresh zcap date parsing bug.
7+
38
## 26.2.2 - 2025-11-25
49

510
### Changed

lib/refreshedZcapCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function _getUncached({profileId, capability, capabilityChain}) {
6666
// compute earliest refresh time
6767
const now = Date.now();
6868
const {maxTtlBeforeRefresh} = policy.refresh.constraints;
69-
const expiryTime = Date.parse(capability.expires).getTime();
69+
const expiryTime = (new Date(capability.expires)).getTime();
7070
const refreshTime = expiryTime - maxClockSkew - maxTtlBeforeRefresh;
7171

7272
// apply refresh time constraint

0 commit comments

Comments
 (0)