Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#2946 closed enhancement (fixed)

Date selector fields in customised profiles need future dates

Reported by: bobsie's profile bobsie Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.5
Component: Extended Profile Keywords:
Cc:

Description

The default behaviour of date selectors in customised profile fields is to allow years from 1900 to the present year. This means they can be used as Date of Birth fields.

However they cannot be set ahead as deadlines, alarm signals, or the dates of future events after 31st December this year.

An option to specify the range of a date field in Profile Field Setup would resolve this. E.g. a minimum and maximum year.

Change History (4)

#1 @r-a-y
13 years ago

  • Component changed from Core to XProfile
  • Keywords date selector profiles profile fields removed

Related: #2947.

#2 @DJPaul
13 years ago

  • Milestone changed from Awaiting Review to 1.3

#3 @DJPaul
13 years ago

This was a fun one; I'm going to commit a patch to set the valid range from 1902 to 2037. Have a look at the changelog on PHP's date() page. I've picked a year in from the max/min to avoid creating confusion for users.

Per the comments, you may not be able to select dates prior to 1970 on certain Windows systems if you are still using PHP4.

#4 @djpaul
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4033]) Set range of valid datebox years from 1902 to 2037. Fixes #2946

Note: See TracTickets for help on using tickets.