mrkrstphr / php-gedcom

UNMAINTAINED - A library for reading and writing GEDCOM files in PHP.
MIT License
38 stars 46 forks source link

Event dates incorrect when change information in the GEDCOM #12

Closed helmutkaufmann closed 10 years ago

helmutkaufmann commented 11 years ago

Hi, I have MacFamilyTree installed and exported a GEDCOM file. The part relevant for this potential issue reads as follows (private info blanked out)

0 @I53561612@ INDI 1 NAME XXX XX /XXXX/ 2 GIVN XXX 2 SURN XXXX 2 SECG XX 2 NPFX XX. 1 SEX M 1 BIRT 2 DATE 01.01.1970 2 PLAC XXX,,Vienna,Austria 2 CHAN 3 DATE 15 Jun 2013 4 TIME 16:36:28 2 CREA 3 DATE 15 Jun 2013 4 TIME 10:24:41 1 CHAN 2 DATE 16 Jun 2013 3 TIME 13:55:29 1 CREA 2 DATE 16 Jun 2013 3 TIME 10:24:28

I would have expected the birth date to be 01.01.1970, however it is 15 Jun 2013. The print_r section reads as follows

[even:protected] => Array ( [0] => PhpGedcom\Record\Indi\Birt Object ( [famc:protected] => [type:protected] => BIRT [date:protected] => 15 Jun 2013 [plac:protected] => PhpGedcom\Record\Indi\Even\Plac Object

It seems that it takes the date the entry go changed as opposed to the actual date.

Thanks for your help, Helmut