diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx
index a3bbff561..e438de167 100644
--- a/app/docs/[[...slug]]/page.tsx
+++ b/app/docs/[[...slug]]/page.tsx
@@ -238,7 +238,7 @@ function DocFooter() {
diff --git a/components/homepage/main-footer.tsx b/components/homepage/main-footer.tsx
index be5ca1909..a5f67c725 100644
--- a/components/homepage/main-footer.tsx
+++ b/components/homepage/main-footer.tsx
@@ -91,7 +91,7 @@ export const MainFooter: FC = () => {
diff --git a/content/docs/getting-started/license.mdx b/content/docs/getting-started/license.mdx
index 2e5c919c9..f44bc8bd4 100644
--- a/content/docs/getting-started/license.mdx
+++ b/content/docs/getting-started/license.mdx
@@ -5,7 +5,7 @@ description: Learn more about the open-source licensing rights of the Flowbite R
## MIT License
-Copyright © 2023 Bergside Inc.
+Copyright © 2024 Bergside Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/src/components/Datepicker/helpers.spec.tsx b/src/components/Datepicker/helpers.spec.tsx
index 9d4793ac0..0a76d7c21 100644
--- a/src/components/Datepicker/helpers.spec.tsx
+++ b/src/components/Datepicker/helpers.spec.tsx
@@ -134,20 +134,20 @@ describe('addYears', () => {
it('returns a new date by adding the specified number of years', () => {
const date = new Date(2023, 0, 1); // January 1st, 2023
const newDate = addYears(date, 5);
- expect(newDate.getFullYear()).toBe(2028);
+ expect(newDate.getFullYear()).toBe(date.getFullYear() + 5);
});
it('returns a new date by subtracting the specified number of years', () => {
const date = new Date(2023, 0, 1); // January 1st, 2023
const newDate = addYears(date, -2);
- expect(newDate.getFullYear()).toBe(2021);
+ expect(newDate.getFullYear()).toBe(date.getFullYear() - 2);
});
it('does not modify the original date', () => {
const date = new Date(2023, 0, 1); // January 1st, 2023
const newDate = addYears(date, 5);
expect(date.getFullYear()).toBe(2023);
- expect(newDate.getFullYear()).toBe(2028);
+ expect(newDate.getFullYear()).toBe(date.getFullYear() + 5);
});
});