Opened 14 years ago
Closed 14 years ago
#2946 closed enhancement (fixed)
Date selector fields in customised profiles need future dates
Reported by: | 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
@
14 years ago
- Component changed from Core to XProfile
- Keywords date selector profiles profile fields removed
#3
@
14 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.
Related: #2947.