Project

General

Profile

Actions

Defect #18984

open

migrate_from_mantis with NoMethodError: strftime

Defect #18984: migrate_from_mantis with NoMethodError: strftime

Added by Paulo Moreira almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
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?


Files

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

Related issues 1 (0 open — 1 closed)

Related to Redmine - Defect #10504: migrate_from_mantis script fails on first project when trying to update version datesClosedActions

Updated by Toshi MARUYAMA almost 12 years ago Actions #1

  • Category set to Importers

Updated by Toshi MARUYAMA almost 12 years ago Actions #2

  • Description updated (diff)

Updated by Toshi MARUYAMA almost 12 years ago Actions #3

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

Updated by Paulo Moreira almost 12 years ago Actions #4

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

Actions

Also available in: PDF Atom