Skip to content

Commit

Permalink
fix: use timeago for build date
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLunaHey committed Jan 4, 2025
1 parent 8c462e0 commit a17d0ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/settings.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Moon, Sun } from 'lucide-react';
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
import { useTheme } from '@/components/theme-provider/use-theme';
import { Link } from '@/components/ui/Link';
import TimeAgo from 'react-timeago-i18n';

export const Route = createLazyFileRoute('/settings')({
component: RouteComponent,
Expand Down Expand Up @@ -169,7 +170,7 @@ function RouteComponent() {
</div>
<div>
{'build date: '}
{__BUILD_DATE__}
<TimeAgo date={__BUILD_DATE__} />
</div>
<div>
{'version: '}
Expand Down

0 comments on commit a17d0ed

Please sign in to comment.