From 52837417bfb1f1bb11bef0b2fd3e2baf74520282 Mon Sep 17 00:00:00 2001 From: Arya Bhosale <60646682+aryabyte21@users.noreply.github.com> Date: Sat, 14 Oct 2023 22:21:05 +0530 Subject: [PATCH] fix: Automate copyright year (#1136) Signed-off-by: aryabyte21 Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com> --- apps/formbricks-com/components/docs/Footer.tsx | 4 +++- apps/formbricks-com/components/shared/Footer.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/formbricks-com/components/docs/Footer.tsx b/apps/formbricks-com/components/docs/Footer.tsx index 4ae96f932d..dece3954ea 100644 --- a/apps/formbricks-com/components/docs/Footer.tsx +++ b/apps/formbricks-com/components/docs/Footer.tsx @@ -113,10 +113,12 @@ function SocialLink({ } function SmallPrint() { + const currentYear = new Date().getFullYear(); + return (

- Formbricks GmbH © 2023. All rights reserved. + Formbricks GmbH © {currentYear}. All rights reserved.

diff --git a/apps/formbricks-com/components/shared/Footer.tsx b/apps/formbricks-com/components/shared/Footer.tsx index 44add32f25..3a4d9432bb 100644 --- a/apps/formbricks-com/components/shared/Footer.tsx +++ b/apps/formbricks-com/components/shared/Footer.tsx @@ -48,6 +48,8 @@ const navigation = { ], }; export default function Footer() { + const currentYear = new Date().getFullYear(); + return (