6.0.0-beta1
7/10/25

[#8645] Date import broken in turba
Summary Date import broken in turba
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester dewi (at) brentwood (dot) bc (dot) ca
Created 10/15/2009 (5747 days ago)
Due
Updated 05/09/2010 (5541 days ago)
Assigned 10/26/2009 (5736 days ago)
Resolved 05/09/2010 (5541 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/09/2010 06:46:45 PM Michael Rubinsky Comment #12
Version ⇒ FRAMEWORK_3
Queue ⇒ Horde Framework Packages
Reply to this comment
Moving to framework queue since this was a fix in Horde_Data
05/09/2010 06:46:05 PM Michael Rubinsky Comment #11
State ⇒ Resolved
Reply to this comment
Fixed. We were not zero padding the month and day strings being 
returned from Horde_Data::mapDate(). The import will still require the 
source file to contain 4 digit years.
05/09/2010 06:44:06 PM CVS Commit Comment #10 Reply to this comment
Changes have been made in CVS for this ticket:

make sure month and day are 0 padded. Fixes Bug: 8645
http://cvs.horde.org/diff.php/framework/Data/Data.php?rt=horde&r1=1.80.10.19&r2=1.80.10.20&ty=u
02/13/2010 10:28:03 PM Michael Rubinsky Comment #9 Reply to this comment
Trying to solve this -  the date is being stored in the db as 94-2-18 
both in Git and in FW_3, but in Git, Horde_Date is able to handle that 
as input and correctly parse the date. In FW_3, Horde_Date chokes on 
that value as input. If I change the year to 1994 in the original 
file, it gets stored as 1994-2-18, but FW_3 still has trouble with it 
due to the single digit month. I can't find where it is loosing (or 
not receiving) the proper MM format.  I've traced the import process 
all the way from turba to Horde_Data and back again, and all through 
the code the year maintains a YY format, while the month retains a 
single digit format.
10/26/2009 06:56:05 PM Jan Schneider State ⇒ Assigned
Assigned to Michael Rubinsky
 
10/26/2009 06:42:21 PM Michael Rubinsky Comment #8 Reply to this comment
FWIW, I'm also getting the incorrect results (with both 2 digit and 4 
digit years), and also use mySQL
10/26/2009 03:35:09 PM dewi (at) brentwood (dot) bc (dot) ca Comment #7 Reply to this comment
It's stored as 1994-02-18 here. What database backend do you use?
# MySQL

# Server version: 5.0.51a-3ubuntu5.4-log

# Protocol version: 10

# MySQL charset:  UTF-8 Unicode (utf8)



Web Server:

Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.11

MySQL client version: 5.0.51a

PHP extension: mysqli


10/26/2009 03:18:00 PM Jan Schneider Comment #6 Reply to this comment
It's stored as 1994-02-18 here. What database backend do you use?
10/26/2009 03:12:03 PM dewi (at) brentwood (dot) bc (dot) ca Comment #5 Reply to this comment
I can import this file perfectly fine with the latest Turba version.
Which version is that? I'm using H3 2.3.2.  I just tried again and it 
certainly displays the Birthday as the wrong date.



I did a mysql dump of the database in use and the field object_bday 
contains the value 94-2-18.

So looks like the actual import gets what is there, but is it storing 
it in the correct format to allow the display to come out right?




10/26/2009 02:19:16 PM Jan Schneider Comment #4
State ⇒ Feedback
Taken from Horde DevelopersHorde Developers
Reply to this comment
I can import this file perfectly fine with the latest Turba version.
10/24/2009 10:45:35 PM Michael Rubinsky Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
10/16/2009 01:38:39 AM dewi (at) brentwood (dot) bc (dot) ca Comment #3 Reply to this comment
I tried with a full 4 digit year first, that did exactly the same 
thing. I changed the year to 2 digits since the turba import date 
format window only indicates 2 digit years. Either way, the date 
import doesn't work. I tried 4 digit years, dates created from excel, 
dates exported from turba and dates exported from thunderbird custom 
field.
10/15/2009 11:23:34 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
How was this csv file generated? Shouldn't the DOB field contain a 4 
digit year?
10/15/2009 09:36:49 PM dewi (at) brentwood (dot) bc (dot) ca Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: lisah2.csv Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ Date import broken in turba
Type ⇒ Bug
Reply to this comment
When trying to perform an address book import from CSV file in turba, 
the date import does not work for importing birthdays. I've tried with 
both an export from thunderbird, an excel file and with an export from 
horde's turba itself.

I can match up all pairs of data in the import screen, when I go to 
process the import it detects that I have a birthday to import and 
asks for the date format. I confirm the correct format and separator, 
but after 'successful' import, the entry for the person has this:-

First Name          Pebbles

Last Name         Flintstone

Middle Names

Name Prefixes

Name Suffixes

Name         Pebbles Flintstone

Alias

Birthday         Wed, Dec 31, 69

Email          janedoe@world.ca

Home Phone         743 5521

Work Phone         748 7474

Mobile Phone         732 5521

Fax

Pager



The birthday is Dec31,69 ... suspiciously close to the epoch!!

Saved Queries