[buddypress-trac] [BuddyPress Trac] #5646: Max date for datebox should be present year

buddypress-trac noreply at wordpress.org
Fri May 16 13:31:01 UTC 2014


#5646: Max date for datebox should be present year
-------------------------+------------------------------
 Reporter:  bi0xid       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  low          |   Milestone:  Awaiting Review
Component:  XProfile     |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by DJPaul):

 Take a look at #2946 which explains why the date goes into the future, yet
 caps at 2037. It's possible versions of PHP later than 5.1 support
 calculating years beyond 2038, but it's a little vague from that page -- I
 haven't tested since about three years ago ;)

 What I think you really want is a "date of birth" field type rather than a
 "datebox" field type; we can't change the maximum value for the datebox
 field type without breaking existing use of this field.

 Now that it's pretty easy to add new profile field types since BP 2.0, my
 feeling is that we'd be OK with adding a new "date of birth" field type.
 Fancy working on a patch? Take a look at the recent patches on #5501 for
 an example of how to add a new field type.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5646#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list