Skip to content

Commit

Permalink
Use datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
cesalberca committed Aug 22, 2024
1 parent aecf622 commit dae1b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
3 changes: 2 additions & 1 deletion src/core/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { SocialMedia } from '@/core/components/social-media/social-media'
import Image from 'next/image'
import { useTranslations } from 'next-intl'
import { Link } from '@/core/components/link/link'
import { Datetime } from '@/core/datetime'

export const Footer: FC = () => {
const t = useTranslations()
Expand All @@ -14,7 +15,7 @@ export const Footer: FC = () => {
<span className="text-lg">{t('home.title')}</span>
</div>
<p className="mt-8 text-neutral-600 dark:text-neutral-300">
{t('common.license', { date: new Date().getFullYear() })}
{t('common.license', { date: Datetime.fromNow().year })}
</p>
</div>
<div className="flex flex-col items-end space-y-4">
Expand Down
25 changes: 0 additions & 25 deletions src/core/hooks/use-mouse-position.tsx

This file was deleted.

0 comments on commit dae1b64

Please sign in to comment.