Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cae1c5

Browse files
author
Timon Eckert
committed
resolved #2 #3
+ fixed timestamp to datetime + due to issue.rb callback before_save you have to manually change the method: force_updated_on_change --> if condition should be AND (on a new issue there can't be any changes)
1 parent d8cf91c commit 8cae1c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrate_from_mantis.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ namespace :redmine do
321321
:subject => encode(bug.summary),
322322
:description => encode(bug.bug_text.full_description),
323323
:priority => PRIORITY_MAPPING[bug.priority] || DEFAULT_PRIORITY,
324-
:created_on => bug.date_submitted,
325-
:updated_on => bug.last_updated
324+
:created_on => Time.at(bug.date_submitted).utc,
325+
:updated_on => Time.at(bug.last_updated).utc
326326
i.author = User.find_by_id(users_map[bug.reporter_id])
327327
i.category = IssueCategory.find_by_project_id_and_name(i.project_id, bug.category_id) unless bug.category_id.blank?
328328
i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version) unless bug.fixed_in_version.blank?

0 commit comments

Comments
 (0)