diff --git a/services/frontend/src/components/material/Footer/index.tsx b/services/frontend/src/components/material/Footer/index.tsx index 8c68785a47..8d088cf2b1 100644 --- a/services/frontend/src/components/material/Footer/index.tsx +++ b/services/frontend/src/components/material/Footer/index.tsx @@ -1,8 +1,8 @@ import { Box, Container, Divider, Stack, Typography } from '@mui/material' import { isDefaultServiceProvider } from '@/common' -import { builtAt, dataProtectionUrl, licenseUrl, sourceCodeUrl } from '@/conf' -import { DISPLAY_DATE_FORMAT } from '@/constants/date' +import { builtAt, dataProtectionUrl, licenseUrl, sentryRelease, sourceCodeUrl } from '@/conf' +import { DISPLAY_DATETIME_FORMAT } from '@/constants/date' import { reformatDate } from '@/util/timeAndDate' import { ExternalLink } from './ExternalLink' import { InternalLink } from './InternalLink' @@ -38,7 +38,10 @@ export const Footer = () => { Build - Updated on {reformatDate(builtAt || new Date().toISOString(), DISPLAY_DATE_FORMAT)} + Updated {reformatDate(builtAt || new Date().toISOString(), DISPLAY_DATETIME_FORMAT)} + + + Version {sentryRelease || 'dev'} diff --git a/services/frontend/src/constants/date.ts b/services/frontend/src/constants/date.ts index 7f1be929a3..2e7ed81461 100644 --- a/services/frontend/src/constants/date.ts +++ b/services/frontend/src/constants/date.ts @@ -1,6 +1,7 @@ // TODO: Replace with an enum export const DISPLAY_DATE_FORMAT = 'DD.MM.YYYY' +export const DISPLAY_DATETIME_FORMAT = 'DD.MM.YYYY HH:mm' export const DISPLAY_DATE_FORMAT_DEV = 'DD.MM.YYYY HH:mm:ss' export const LONG_DATE_TIME_FORMAT = 'D MMMM YYYY [at] HH:mm:ss' export const ISO_DATE_FORMAT = 'YYYY-MM-DD'