From 9d137dfd3a8e5afd226d29407dffa5687ab69ce4 Mon Sep 17 00:00:00 2001 From: emelko Date: Fri, 19 Jun 2020 11:00:48 +0200 Subject: [PATCH] Uses built-in JS functionality for getting currentYear, thanks to @sdvig --- i18n/en/settings.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i18n/en/settings.js b/i18n/en/settings.js index 123e11f..36f63de 100644 --- a/i18n/en/settings.js +++ b/i18n/en/settings.js @@ -1,7 +1,6 @@ import links from './links' -import moment from 'moment' -const year = moment().year() +const currentYear = new Date().getFullYear() export default { menuTitles: { @@ -107,7 +106,7 @@ export default { }, license: { 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