Split out year
authorMark Felder <feld@feld.me>
Fri, 15 Jan 2021 23:25:43 +0000 (17:25 -0600)
committerMark Felder <feld@feld.me>
Fri, 15 Jan 2021 23:25:43 +0000 (17:25 -0600)
mix.exs

diff --git a/mix.exs b/mix.exs
index 166cbdca51480719c5439397f7c7f03f63c06028..1bfca0b474135212b016df806853b0c60fec2db0 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -335,10 +335,10 @@ defmodule Pleroma.Mixfile do
   end
 
   defp add_copyright(_) do
+    year = NaiveDateTime.utc_now().year
     line1 = "# Pleroma: A lightweight social networking server\\n"
 
-    line2 =
-      "# Copyright © 2017-#{NaiveDateTime.utc_now().year} Pleroma Authors <https://pleroma.social/>\\n"
+    line2 = "# Copyright © 2017-#{year} Pleroma Authors <https://pleroma.social/>\\n"
 
     line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n"
     template = line1 <> line2 <> line3