Defect #18984

migrate_from_mantis with NoMethodError: strftime

Added by Paulo Moreira over 5 years ago. Updated over 5 years ago.

Status:ResolvedStart date:
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:Importers
Target version:-
Resolution: Affected version:

Description

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?

patch_strftime_error - patch_strftime_error (448 Bytes) Paulo Moreira, 2015-02-02 16:52


Related issues

Related to Redmine - Defect #10504: migrate_from_mantis script fails on first project when tr... Resolved

History

#1 Updated by Toshi MARUYAMA over 5 years ago

  • Category set to Importers

#2 Updated by Toshi MARUYAMA over 5 years ago

  • Description updated (diff)

#3 Updated by Toshi MARUYAMA over 5 years ago

  • Related to Defect #10504: migrate_from_mantis script fails on first project when trying to update version dates added

#4 Updated by Paulo Moreira over 5 years ago

With the following changes:

  1. 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

Also available in: Atom PDF