We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d2d25d commit 3cd6086Copy full SHA for 3cd6086
1 file changed
packages/sources/generic-api/src/transport/multi-http.ts
@@ -72,13 +72,7 @@ const transportConfig: HttpTransportConfig<HttpTransportTypes> = {
72
}
73
74
const timestampValue = objectPath.get(response.data, param.providerIndicatedTimePath)
75
-
76
- // Support both ISO 8601 strings and Unix milliseconds (number)
77
- if (typeof timestampValue === 'number') {
78
- providerIndicatedTimeUnixMs = timestampValue
79
- } else {
80
- providerIndicatedTimeUnixMs = new Date(timestampValue).getTime()
81
- }
+ providerIndicatedTimeUnixMs = new Date(timestampValue).getTime()
82
83
// Validate: must be finite and positive
84
if (!Number.isFinite(providerIndicatedTimeUnixMs) || providerIndicatedTimeUnixMs <= 0) {
0 commit comments