[buddypress-trac] [BuddyPress] #2240: Unix epoch is not accepted in date field values

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Mar 31 20:14:41 UTC 2010


#2240: Unix epoch is not accepted in date field values
----------------------------+-----------------------------------------------
 Reporter:  francescolaffi  |       Owner:  francescolaffi                                 
     Type:  defect          |      Status:  new                                            
 Priority:  major           |   Milestone:                                                 
Component:  XProfile        |    Keywords:  unix epoch, date field, has-patch, dev-feedback
----------------------------+-----------------------------------------------
Changes (by francescolaffi):

  * keywords:  unix epoch, date field, has-patch, dev-feedback reporter-
               feedback => unix epoch, date field, has-
               patch, dev-feedback


Comment:

 I'm selecting 1 jan 1970 from the dropdown fields in registration or edit
 profile page, then the core convert it to a timestamp with strtotime
 function for better handling and storing in the db. The problem is that
 the timestamp of 1-1-1970 is 0 and the core validate all values with empty
 function, so 0 is not accepted.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2240#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list