Setting a 'birthday' outside the range Thursday, 01/01/1970 to Tuesday, 19/01/2038 gives the following error:
warning: unexpected error in date() in d:\www\includes\common.inc on line 558.
and generally crashes my apache. The 'Birthday' field contains just a ','.
I'd expect an error with dates that are in the future, but this means no-one can be older than 33...
Comments
Comment #1
marky commentedshould this be a feature request?
http://cr.yp.to/time.html
Comment #2
al commentedI've patched this up using the adodb date routines. This could do with being reviewed and committed.
Comment #3
al commentedIn latest CVS:
- Years down to 1902 seem to work fine.
- Years up to 2037 work fine.
- Outside this range, you get Jan 1 1970.
Changing priority to minor as a result.
We really should think about using adodb date routines, which would avoid all problems like this. Do people have a huge objection to that?
Comment #4
al commentedComment #5
marky commentedwith current cvs. Seems it's a Windows thing, and yeah, the adodb date lib fixes this.
+1 for pushing for inclusion of the above library into the core.
Comment #6
fworsley commentedIs this problem still being worked on?
We just launched a Drupal 4.4.1 site with a lot of older users and if they enter a pre-1970 birthdate it shows up as December 31, 1969. This is really biting us in the ass. Any suggestions would be appreciated.
Comment #7
marky commentedSee this thread...
Comment #8
jonbob commentedThis has begun generating duplicate bug reports:
http://drupal.org/node/view/9447
http://drupal.org/node/view/9218
Comment #9
jonbob commentedComment #10
Steven commentedThis bug was fixed in HEAD/4.5, I'm leaving it open for 4.4.2.
Comment #11
Steven commentedIt doesn't look like this be fixed anymore in 4.4.x because it requires quite a lot of changes. People will just have to upgrade to 4.5.0 or later.