From: Mark Felder Date: Fri, 15 Jan 2021 23:25:43 +0000 (-0600) Subject: Split out year X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=41a637c3a66cc68efddb84d3e888c6c21787c1c9;p=akkoma Split out year --- diff --git a/mix.exs b/mix.exs index 166cbdca5..1bfca0b47 100644 --- 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 \\n" + line2 = "# Copyright © 2017-#{year} Pleroma Authors \\n" line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n" template = line1 <> line2 <> line3