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) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Start date only goes back 20 years.
Pages: [1]

Author Topic: Start date only goes back 20 years.  (Read 1516 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Start date only goes back 20 years.
December 18, 2009, 07:39:07 am
A client is entering clients into the database but it only shows the start date option for 20 years back but some have been 30 or more.
What file should I modify to set this to say 40 years back?
I checked civicrm/CRM/Utils/Date.php
Just not seeing where it sets the range.

Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Start date only goes back 20 years.
December 18, 2009, 10:51:52 am
First Start Offset to 40  Check: http://drupal.demo.civicrm.org/civicrm/admin/setting/preferences/date?action=update&id=1&reset=1

You will have to modify Membership.tpl file and change
{include file="CRM/common/calendar/body.tpl" dateVar=start_date startDate=currentYear endDate=endYear offset=40 trigger=trigger_membership_2}

HTh
Kurund
Found this reply helpful? Support CiviCRM

gmasky

  • Guest
Re: Start date only goes back 20 years.
February 22, 2010, 12:45:57 am
Hi Kurund,

Not sure if you still support Civicrm 1.9

I need to change the offset for memberships join from (default) 1990 to 1970. In 1.9 there is no option to change the offset from Global settings

I have edited Membership.tpl and changed the offset for join date. However the drop down year is yet showing 1990 while the calendar displays settings as per the new offset (1970); I choose a date from the calendar and the date and month changes but the year displays 1990.

I have cleared cache and sessions tables but without any luck

Thanks in advance

Gerry

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Start date only goes back 20 years.
February 22, 2010, 12:50:24 am
Gerry,

Sorry can't remember anything of 1.9. There might be some bug etc in 1.9, don't know.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Start date only goes back 20 years.

This forum was archived on 2017-11-26.