Menu

Calendar.php

Help
Sebastien
2003-12-22
2003-12-22
  • Sebastien

    Sebastien - 2003-12-22

    Hi,

    I'm getting familiar with Version 2.61 (french/theme Xenea) and calendar.php doesn't display any anniversary in either view (daily/monthly).

    Would there be a problem with my initial date format ? (although the ages are properly calculated throughout the program)

    Any clue ?

    Thanks in advance

    Sebastien

    p.s.  Very nice package !  Congratulations to the author !

     
    • John Finlay

      John Finlay - 2003-12-22

      Dates need to be entered in the standard genealogy date format 01 JAN 2003 (DD MMM YYYY) for the calendar to work correctly.

      I just added a patch in the patches section of the website with a tool that will convert dates in the format 2003-01-01 (YYYY-MM-DD) to the correct format.

      You can download this tool here: http://sourceforge.net/tracker/index.php?func=detail&aid=864554&group_id=55456&atid=477081

      If your dates are in another format just let me know and I will help modify the script to convert the dates correctly for you.

      --John

       
    • Sebastien

      Sebastien - 2003-12-22

      Actually my dates are in the following format:

      dd-mm-yyyy

      Does your patch allow for the modification of the dates in the pgv_individuals table ? or does it convert raw gedcom files ?

      Regards,

      Sebastien

       
    • John Finlay

      John Finlay - 2003-12-22

      The patch is run on the gedcom file before it is imported.

      So in your case, you would edit the dateconvert.php file and change all the regular expressions to look like this:
      $fcontents = preg_replace("/(\d\d)-(01)-(\d\d\d\d)/", "$1 JAN $3", $fcontents);

      Run this file on your gedcom and then reimport your gedcom file.

      --John

       
    • Sebastien

      Sebastien - 2003-12-22

      The script worked (after changing $ct to  preg_match_all("/(\d\d)-(\d\d)-(\d\d\d\d)/", $fcontents, $match, PREG_SET_ORDER)) in order to match my date format.

      Thanks a lot or your support !

      Sebastien

       

Log in to post a comment.