mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-14 14:22:30 +01:00
Use utc date format when creating releases using Update Config
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user