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 7c4187b commit a0841a2Copy full SHA for a0841a2
src/k8s/logging/logging.service.ts
@@ -313,9 +313,9 @@ export class LoggingService {
313
for (let data of text.split(/\n/)) {
314
const { timestamp, log } = this.parseLog(data);
315
316
- if (new Date(timestamp)) {
317
- const latestTimestamp = new Date(timestamp);
+ const latestTimestamp = new Date(timestamp);
318
+ if (latestTimestamp && !Number.isNaN(latestTimestamp.getTime())) {
319
if (!oldestTimestamp || oldestTimestamp > latestTimestamp) {
320
if (!oldestTimestamp) {
321
stream.emit(
0 commit comments