We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4753853 commit aa2f031Copy full SHA for aa2f031
src/client/Omaha.ts
@@ -479,7 +479,7 @@ export class Omaha extends EventEmitter<OmahaEvents> {
479
}
480
481
if (key.endsWith('_at') || key === 'time' || key === 'date' || key.startsWith('date_')) {
482
- if (typeof value !== 'string' || !value.endsWith('Z')) {
+ if (typeof value !== 'string' || (!value.endsWith('Z') && !/^\d{4}-\d{2}-\d{2}$/.test(value))) {
483
throw new Error(`Error parsing field "${key}" in response as a date with value: ${value}`);
484
485
0 commit comments