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

Copyright date on the application is still 2022 #101

Open
jvanulde opened this issue Feb 13, 2023 · 1 comment
Open

Copyright date on the application is still 2022 #101

jvanulde opened this issue Feb 13, 2023 · 1 comment
Assignees

Comments

@jvanulde
Copy link
Contributor

Currently:

© 2022 RiskProfiler. All rights reserved.

Should be:

© 2023 RiskProfiler. All rights reserved.

Perhaps look at a way to insert the current year through a script.

@anthonyfok anthonyfok self-assigned this Feb 13, 2023
@anthonyfok
Copy link
Member

Thanks @jvanulde for the heads up!

RiskProfiler v1.1.0 has just been deployed on www.riskprofiler.ca, so the year has automatically been updated to 2023.

The copyright year is found in the WordPress template named "Footer" in a "paragraph" with the following content:

© [timestamp format="Y"] RiskProfiler. All rights reserved. [Terms & Conditions](https://www.canada.ca/en/transparency/terms.html)

so it already inserts the current year at the time of dynamic page load, i.e. when Simply Static export is run.

The Google basemap attribution, on the other hand, is inside JavaScript, so I just changed it from the previously hardcoded 2022 to `new Date().getFullYear().

But yeah, I am a bit hesitant to use JavaScript for © 2023 RiskProfiler., but perhaps we could somehow automate a Simply Static export and AWS S3 upload on New Year's Day?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants