Uses built-in JS functionality for getting currentYear, thanks to @sdvig

This commit is contained in:
emelko
2020-06-19 11:00:48 +02:00
parent 240c61e46e
commit 9d137dfd3a
+2 -3
View File
@@ -1,7 +1,6 @@
import links from './links' import links from './links'
import moment from 'moment'
const year = moment().year() const currentYear = new Date().getFullYear()
export default { export default {
menuTitles: { menuTitles: {
@@ -107,7 +106,7 @@ export default {
}, },
license: { license: {
title: 'drip is an open-source cycle tracking app', title: 'drip is an open-source cycle tracking app',
text: `Copyright (C) ${year} Bloody Health GbR text: `Copyright (C) ${currentYear} Bloody Health GbR
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details: https://www.gnu.org/licenses/gpl-3.0.html This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details: https://www.gnu.org/licenses/gpl-3.0.html