Commit ea2f9a60 authored by Phil Hughes's avatar Phil Hughes

Correctly parse the date of artifact expiring

Previously it was just replacing dashes which would remove the timezone offset causing the date to be invalid

Closes #19600
parent 796f531f
......@@ -146,7 +146,7 @@
$date = $('.js-artifacts-remove');
if ($date.length) {
date = $date.text();
return $date.text($.timefor(new Date(date.replace(/-/g, '/')), ' '));
return $date.text($.timefor(new Date(date.replace(/([0-9]+)-([0-9]+)-([0-9]+)/g, '$1/$2/$3')), ' '));
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment