Skip to content

Commit

Permalink
revert: use original date parsing method
Browse files Browse the repository at this point in the history
  • Loading branch information
Arc676 authored Jan 6, 2025
1 parent c379d8c commit 9d6583b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/modules/datasource/artifactory/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { DateTime } from 'luxon';
import { logger } from '../../../logger';
import { cache } from '../../../util/cache/package/decorator';
import { parse } from '../../../util/html';
Expand Down Expand Up @@ -118,7 +117,7 @@ export class ArtifactoryDatasource extends Datasource {
return (
rawText
.split(regEx(/\s{2,}/))
.filter((e) => DateTime.fromFormat(e, 'dd-LLL-yyyy HH:mm').isValid)[0] +
.filter((e) => !isNaN(Date.parse(e)))[0] +
'Z'
);
}
Expand Down

0 comments on commit 9d6583b

Please sign in to comment.