CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Jewish/Hebrew calendar support
Pages: [1] 2

Author Topic: Jewish/Hebrew calendar support  (Read 15247 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Jewish/Hebrew calendar support
October 21, 2007, 01:44:39 am
I would like to use CiviCRM for my synagogue. Many dates need to be tracked according to the Jewish calendar instead of (or in addition to) the Gregorian calendar. For example, people's date of birth, date of death, bar mitzvah date, holidays, etc.  A common weekly task for the office staff is to notify families if there is a death anniversary in the coming week. A common yearly task is to create a list of all families with babies born during the last Jewish year.    Often we need to know both dates, i.e. send a mailing showing both the Jewish date and the Gregorian date for an occasion   

We also need to look ahead. For example, for a 10 year old child we need to be able to look ahead on the calendar and see when their 13th  birthday is on both the Hebrew and Gregorian calendar in order to schedule their bar mitzvah.

How would I do this in CiviCRM? There does not seem to be support for alternative calendars.

Thanks,
Sarah
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Jewish/Hebrew calendar support
October 22, 2007, 12:06:05 am

Sarah:

There is no support for alternative calendars as yet in CiviCRM. It is currently not on our short term release list either. In such cases, your best option would be to hire a developer to build this support and contribute it back to CiviCRM

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kishibashi

  • Guest
Re: Jewish/Hebrew calendar support
October 22, 2007, 02:23:47 am
We have added Japanese Calendar support to our CiviCRM environment which is a complete break from the Gregorian Calendar.

As you may or may not know, we actually still have an Emperor here in the land of the rising sun. Our national calendar is actually based off the era or the reign of the emperor... It looks something like this:

1989 = Heisei Year 1 / Month / Day
1990 = Heisei Year 2 / Month / Day

New Emperor on the thrown, it becomes a NewEra and Year 1 all over again... Yes folks, we are born again and my date of birth is actually based on how long the emperor is on the thrown.

Anyway I am taking a look at הלוח העברי to see if it can be incorporated as a client of ours in Israel (Technion) will probably need it. I will let you know if we have something for you to use in the interim.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
November 03, 2007, 03:18:41 pm
That would be great!  If you need help, I could help in testing, etc.  This may be more challenging than the Japanese calendar as Hebrew dates start at sundown, which varies by city and season. Also there is periodically a "leap month" added to the calendar.   

Thanks,
Sarah
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Jewish/Hebrew calendar support
February 08, 2008, 12:19:21 pm
I am curious if any more work has been done on this. I have several sites for which this would be very useful.

/carmi

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Jewish/Hebrew calendar support
July 11, 2008, 08:49:19 am
Any news?

/carmi

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
April 20, 2009, 12:46:20 am
I found a small PHP script that will convert dates. Where should I hook this in to CiviCRM for converting date of birth and date of death?

$gregorianMonth = date(n);
$gregorianDay = date(j);
$gregorianYear = date(Y);

$jdDate = gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear);

$hebrewMonthName = jdmonthname($jdDate,4);

$hebrewDate = jdtojewish($jdDate);

list($hebrewMonth, $hebrewDay, $hebrewYear) = split('/',$hebrewDate);

echo "$hebrewDay $hebrewMonthName $hebrewYear";
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
May 04, 2009, 02:53:36 pm
I am in the process of coding Hebrew calendar support for CiviCRM.  The requirements and details for how the Hebrew calendar will work within CiviCRM is being documented on the wiki at:
 http://wiki.civicrm.org/confluence/display/CRMDOC/Hebrew+calendar+support+for+CiviCRM

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Jewish/Hebrew calendar support
August 03, 2009, 07:23:05 am
I went through your list of functionality and it seems you have a very complete implementation in mind. How is it going?
One quick question, will you have both English and Hebrew names for the months (Adar and אדר) and holidays? I think that would be important for many people.

I am quite eager to use this for my synagogue as well. Thanks for the great work.

/carmi
« Last Edit: August 03, 2009, 07:25:26 am by majortom »

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
August 03, 2009, 03:15:04 pm
I have the basics done, which is calculating upcoming yahrzeit dates, and earliest possible bar/bat mitzvah date. I also created a custom search that allows someone to search for upcoming yahrzeits in the system. The filter for the custom search is how many days after today, plus total days. For example, the Rabbi's assistant may want to run the custom search on Thursday for all yahrzeits that fall between the following Saturday  plus 6 days. 

Currently I am only showing the English month name ( ie Adar ) but I can easily add Hebrew month names.

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

fblauer

  • Guest
Re: Jewish/Hebrew calendar support
August 07, 2009, 10:43:15 am
This is great. I am looking into using Civicrm for a few synagogues. How are we going to be able to get our hands on this customization, or will it be incorporated into the next version?

Mordyk

  • Guest
Re: Jewish/Hebrew calendar support
December 25, 2009, 04:23:26 am
Sarah,

I appreciate your work on this as it is a piece in the puzzle of functionality that is required for a project that is currently on hold.  One of the problems in the way you laid it out is the following: How can you the administrator set up an automatic email on the occurrence of a specific activity (i.e. yahrtzeit, birthday, etc.) if it is not in the actual date field while at the same time retaining the the gregorian date for the standard civiCRM functionality.

If this has already been addressed in your design then I stand corrected and await your release of the code.

Mordy

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
December 26, 2009, 11:53:21 am
Mordy -

I only store the Gregorian date and the "before or after sunset" flag in the database. Then the Hebrew dates are calculated as needed. I have a PHP file that is called every night by a CRON job that handles sending out the yahrzeit reminders by email. wget -O - -q -t 1 "http://myhost.com/civicrm_custom_code/batch/UpcomingYahrzeitsBin.php?wantsBCC=false&name=xxx&pass=xxxkey=xxx&dateStartRange=7&dateEndRange=1"     What this does is send out for any yahrzeits that fall 7 days after today, for a date range of 1 day.  So everybody gets an email exactly 7 days in advance of the yahrzeit.


Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Jewish/Hebrew calendar support
December 27, 2009, 12:34:54 pm
This is very interesting work. Are you able to release your code so that we could look at it?

Thanks.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Jewish/Hebrew calendar support
December 27, 2009, 09:16:16 pm
I am currently making the Hebrew calendar implementation available to try out at: http://demo.shulsuite.com.   It has the Hebrew calendar features I have developed plus other customizations for synagogues such as cemetery tracking.  I would love to get feedback!

I have also been installing it for my synagogue clients.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Jewish/Hebrew calendar support

This forum was archived on 2017-11-26.