プロジェクト

全般

プロフィール

Vote #76002

未完了

migrate_from_mantis with NoMethodError: strftime

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Resolved
優先度:
急いで
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
0
issue_org_id:
18984
author_id:
120414
assigned_to_id:
0
comments:
4
status_id:
3
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Resolved]

説明

I am migrating from Mantis 1.1.8 to Redmine 2.6.1.stable

Using: rake --trace redmine:migrate_from_mantis RAILS_ENV="production"

I get the following error:
NoMethodError: undefined method `strftime' for 1411982898:Fixnum

I have applied: #10504

But with no success.

Any hints?


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
With the following changes:

# Bug files
- bug.bug_files.each do |file|
- a = Attachment.new :created_on => file.date_added
+ bug.bug_files.each do |file|
+ a = Attachment.new :created_on => *Time.at(file.date_added)*

The problem is resolved!

Attached patch
--------------------------------------------------------------------------------


related_issues

relates,Resolved,10504,migrate_from_mantis script fails on first project when trying to update version dates

Admin Redmine さんが約4年前に更新

  • カテゴリImporters_15 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0