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
Change the hard-coded current year to the current year #1436
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dynamic year code LGTM 😀
| @@ -2,7 +2,7 @@ | |||
| <div id="footer-container" class="container <%= "centered-footer" unless current_page.include?("stories-show") %>"> | |||
| <div class="inner-footer-container"> | |||
| <a href="/">Home</a> <a href="/about">About</a> <a href="/privacy">Privacy Policy</a> <a href="/terms">Terms of Use</a> <a href="/contact">Contact</a> <a href="/code-of-conduct">Code of Conduct</a> | |||
| DEV Community copyright 2018 🔥 | |||
| DEV Community copyright 2016 - <%= Time.new.year %> 🔥 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just display the current year, the same way it was before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably would've done well to ask first. Might not be a bad idea to consult with an IP attorney, out of an abundance of caution, assuming the organization's intent to enforce the copyright. I have found multiple attorneys who offer similar guidance on their respective blogs and reference sites: https://danashultz.com/2013/10/09/copyright-notice-with-multiple-years-legitimate/
It's up to you. Thanks for the opportunity to contribute!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update makes sense to me
What type of PR is this? (check all applicable)
Description
The current year is hard-coded in
_footer.html.erband_profile.html.erb. This PR makes the current year dynamic in both places.Related Tickets & Documents
This tweet
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?