Skip to content

Commit ebe8c76

Browse files
authored
tests(percy): Fix Incident status item dynamic time (#13640)
Causes issues in percy because of time
1 parent af9f4d9 commit ebe8c76

File tree

1 file changed

+2
-1
lines changed
  • src/sentry/static/sentry/app/views/organizationIncidents/details/activity

1 file changed

+2
-1
lines changed

src/sentry/static/sentry/app/views/organizationIncidents/details/activity/statusItem.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {t} from 'app/locale';
1010
import ActivityItem from 'app/components/activity/item';
1111
import Chart from 'app/views/organizationIncidents/details/chart';
1212
import SentryTypes from 'app/sentryTypes';
13+
import getDynamicText from 'app/utils/getDynamicText';
1314

1415
/**
1516
* StatusItem renders status changes for Incidents
@@ -59,7 +60,7 @@ class StatusItem extends React.Component {
5960
{isReopened && t('re-opened')} {t('an Incident')}
6061
</div>
6162
}
62-
date={activity.dateCreated}
63+
date={getDynamicText({value: activity.dateCreated, fixed: new Date(0)})}
6364
>
6465
{activity.eventStats && (
6566
<Chart

0 commit comments

Comments
 (0)