mu.nu - Fighting attention deficit disorder wherever it - ooh, shiny!

July 13, 2004

Bug Fix For Those Exporting Entries From MT 3.0 to MT 2.64

I finally got feedback on the import issue I was having importing entries from Movable Type 3.0 to Movable Type 2.64. Here is a link and here is the text for quick reference:

At line 432 in lib/MT/ImportExport.pm:

## Make sure dates are in English.
$blog->language('english');

I believe this an incorrect specification of the language, which is used to figure out how AM/PM needs to be output. Since 'english' isn't a valid language code, MT outputs nothing for the %p (AM/PM) format code.

I've tested the following change on my weblog, and it now includes the AM/PM in an export file:

## Make sure dates are in English.
$blog->language('en');

Hope this helps!

Posted by: Nick Queen at 07:04 PM | Comments (92) | Add Comment | Trackbacks (Suck)






Processing 0.0, elapsed 0.0066 seconds.
20 queries taking 0.0045 seconds, 21 records returned.
Page size 6 kb.
Powered by Minx 0.8 beta.