Can't enter End Date > Jan 17, 2038: "End date can not be before the start date" error seen

Project:Discounts
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Discounts

I'm using Ubercart-beta2 with the uc_discounts-20080107.tar.gz contrib package on Drupal 5.6 with all installed modules up to date.
While creating a discount, I am incorrectly seeing the error message: "End date can not be before the start date" when entering an End Date > Jan 17, 2038. The start date is set to today: Jan 22, 2008. Looks like and EPOCH/ date/math issue. Sorry I haven't into the code to nail down any further. It's been a looong day but I wanted to get this reported asap. I'll continue testing this contrib as I need it for a site under development.
Thanks again guys.
BTW, the UberCart team is awesome. I think you guys epitomize the meaning of Open Source TeamWork!!!
Keep up the great work!
G

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Can't enter End Date > Jan 17, 2038: "End date can not be b

It's weird that you can't enter the 17th, because my site shows the latest date handled by PHP as Mon, 18 Jan 2038 22:14:07 -0500. This was generated with

<?php
 
print date('r', PHP_INT_MAX);
?>

PHP_INT_MAX is machine-dependent, and evaluates to 2147483647 on my site. 32-bit signed integers are the most common configuration, I think.

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Can't enter End Date > Jan 17, 2038: "End date can not
Assigned to:Lyle» psynaptic

This looks like a Form API issue. Can anyone confirm?