Use utc date format when creating releases using Update Config

This commit is contained in:
rubenwardy 2021-01-30 01:20:38 +00:00
parent 56ff354021
commit 99eee9c758
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os, git, tempfile, shutil, gitdb, contextlib
import os, git, tempfile, shutil, gitdb, contextlib, datetime
from git import GitCommandError
from git_archive_all import GitArchiver
from urllib.error import HTTPError
@ -341,7 +341,7 @@ def check_update_config_impl(package):
if config.make_release:
rel = PackageRelease()
rel.package = package
rel.title = tag if tag else commit[0:5]
rel.title = tag if tag else datetime.datetime.utcnow().strftime("%Y-%m-%d")
rel.url = ""
rel.task_id = uuid()
db.session.add(rel)