Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with new year (2024) #1215

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function DocFooter() {
<Footer.Copyright
by="All Rights Reserved. Flowbite™ is a registered trademark."
href="/"
year={2023}
year={new Date().getFullYear()}
className="text-base"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/homepage/main-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const MainFooter: FC = () => {
<Footer.Copyright
by="All Rights Reserved. Flowbite™ is a registered trademark."
href="/"
year={2023}
year={new Date().getFullYear()}
className="text-base"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion content/docs/getting-started/license.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Learn more about the open-source licensing rights of the Flowbite R

## MIT License

Copyright &copy; 2023 Bergside Inc.
Copyright &copy; 2024 Bergside Inc.
tulup-conner marked this conversation as resolved.
Show resolved Hide resolved

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions src/components/Datepicker/helpers.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down