format rss feed last fetched at timestamp to short time

This commit is contained in:
Hongbo Wu 2023-07-13 11:28:32 +08:00
parent 18251aefed
commit b5e9aaa303

View file

@ -7,7 +7,7 @@ import {
SettingsTable,
SettingsTableRow,
} from '../../../components/templates/settings/SettingsTable'
import { formattedLongDate } from '../../../lib/dateFormatting'
import { formattedShortTime } from '../../../lib/dateFormatting'
import { unsubscribeMutation } from '../../../lib/networking/mutations/unsubscribeMutation'
import {
SubscriptionType,
@ -74,7 +74,7 @@ export default function Rss(): JSX.Element {
{`URL: ${subscription.url}, `}
{`Last fetched: ${
subscription.lastFetchedAt
? formattedLongDate(subscription.lastFetchedAt)
? formattedShortTime(subscription.lastFetchedAt)
: 'Never'
}`}
</StyledText>