If I try to set the limit submissions to date to a date in the future I receive "The entered date must be 2011-09-05 or earlier."

I'm sure this was working for me previously so I'm guessing I've changed something on my site which I've set this as a feature request.

I'm not sure how to go about checking where that validation is firing...

Thanks in advance...

Comments

donnycarette’s picture

Assigned: Unassigned » donnycarette

Can't reproduce the error, can you make take a look at your settings at admin/settings/date-time?
What version of webform_limit_submissions and webform are you using?

vernond’s picture

Hmmm, don't know why this comes up now, but I'm getting the error also.

Problem seems solved when the include is moved to the top of component building and we fetch the date component defaults, like so:

  // Cut-off date (use Webform date component generator).

  module_load_include('inc', 'webform', 'components/date');

  $component = _webform_defaults_date();
  $component['name'] = 'Form cut-off date';
.
.
.

I'm going to play a bit and will post a git patch later.

vernond’s picture

StatusFileSize
new5.9 KB

It seems that this patch solves the missing start_date and end_date issue causing the validation error.

donnycarette’s picture

Strange but i didn't get errors but, thanks again Vernond!
I will add a new release based on your patch (Probably tomorrow morning)

donnycarette’s picture

Patch is applied to release 6.x-2.3
I'm leaving this issue open to see if it's fixed for everyone

donnycarette’s picture

Status: Active » Closed (fixed)

Closing

tsaks’s picture

Status: Closed (fixed) » Active

Hi-
I re-opened this issue because I have the exact same problem:
'The entered date must be 2011-XX-XX or earlier'

Have Webform 6.x-3.14 with Webform Limit Submissions 6.x-2.4

Thanks.

mdpenguin’s picture

I'm getting it now with 2.4, as well. I'm sure that I didn't have this problem in the past.

donnycarette’s picture

Status: Active » Needs work

You need the install the Date API module and set the local date and time.
Thanks for pointing the issue, i will add a new release that requires the date module

donnycarette’s picture

Version: 6.x-2.2 » 6.x-2.4
StatusFileSize
new4.73 KB

Seems there's more wrong with latest version, can someone try the version attached to this post please?

vernond’s picture

I don't haver this module implemented on any production sites at the moment, but local testing of the version in http://drupal.org/node/1269938#comment-5272202 seems to be cool.

donnycarette’s picture

Status: Needs work » Needs review

Thanks vernond for testing!
I already added a new release because the current wasn't working it appears: 6.x-3.0-beta1

donnycarette’s picture

Status: Needs review » Closed (fixed)