GitLab wurde erfolgreich aktualisiert. Durch regelmäßige Updates bleibt das THM GitLab sicher. Danke für Ihre Geduld.

Commit 0f6a01c6 authored by jplang's avatar jplang

Just use current date.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent cfbb530f
#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'
require 'date'
VERSION = '1.0.0'
......@@ -216,18 +217,7 @@ module Redmine
def release_date
@r_date.empty? ? (@release_date || parse_release_date) : @r_date
def parse_release_date
version_details = retrieve_version_details
release_date = version_details.css(RELEASE_DATE_SELECTOR).first.text
unless release_date =~ RELEASE_DATE_REGEX_COMPLETE
release_date = release_date.match(RELEASE_DATE_REGEX_INCOMPLETE)
release_date = release_date[1]
@release_date = release_date
@r_date.empty? ? (@release_date ||"%Y-%m-%d")) : @r_date
def retrieve_version_details
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment