fix: datetime parsing consistent across browsers

This commit is contained in:
jamesread 2026-01-12 00:09:06 +00:00
parent 55a00a7e01
commit a44087631f
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function onExecutionChanged (evt) {
// Update rate limit store from logEntry if rate limit expiry datetime is provided
if (logEntry && logEntry.datetimeRateLimitExpires && logEntry.bindingId) {
// Parse datetime string "2006-01-02 15:04:05" and convert to Unix timestamp
const date = new Date(logEntry.datetimeRateLimitExpires.replace(' ', 'T'))
const date = new Date(logEntry.datetimeRateLimitExpires.replace(' ', 'T') + 'Z')
rateLimits[logEntry.bindingId] = date.getTime() / 1000
} else if (logEntry && logEntry.bindingId) {
// Clear rate limit if not set