Fix date field type detection during import. Fixes bug #11692.

This commit is contained in:
Colin Kuskie 2010-07-05 09:02:48 -07:00
parent bf7c7aad55
commit 90f0a9b006
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
- fixed: missing per-item template variables for the cart.
- fixed #11696: WebGUI 7.9.8 gotcha
- fixed #11698: Trash dies on missing or bad workflow
- fixed #11692: Dates not imported correctly into Thingy
7.9.8
- fixed #11651: First Day of Week is a string...

View file

@ -2901,7 +2901,7 @@ sub www_import {
my $fieldType = $insertColumn->{fieldType};
my $fieldInOtherThingId = $insertColumn->{fieldInOtherThingId};
# TODO: process dates and otherThing field id's
if ($fieldType eq "date" || $fieldType eq "dateTime"){
if (lc $fieldType eq "date" || lc $fieldType eq "datetime"){
$fieldValue =~ s/\//-/gx;
$fieldValue = $session->datetime->setToEpoch($fieldValue);
}