View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12428Bug reportsSurvey takingpublic2017-06-14 16:07
Reporterterryaulenbach Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version2.56.x 
Summary12428: Mimimum date not accepted as valid date
Description

Setting the Minimum date to "+20 days" allows that date to be picked but gives the warning "Answer must be between 14/06/2017 and 20/07/2017" (based on the first available date being 14/06/2017) and prevents the survey from submitting.

Steps To Reproduce

Create a date question and set the Minimum date to "+20 days" (or any number of days, weeks, months, etc. using this format).

Additional Information

date("Y-m-d",time()+606024*28) will work in its place

TagsNo tags attached.
Attached Files
DateError.png (9,719 bytes)   
DateError.png (9,719 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)Version 2.56.1+161118
I will donate to the project if issue is resolvedYes
BrowserFirefox & Chrome for sure, not tested in others.
Database type & versionPostgreSQL 9.6.0
Server OS (if known)Windows Server 2012
Webserver software & version (if known)Apache 2.4.23
PHP Version7.0.13

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2017-05-26 09:22

developer   ~43724

Can you make a survey with just this question and send the lss file here ?

There are a strange error when survey reload value (value is resetted) , but can submit a valid date for my part : https://limesurvey.sondages.pro/391433 (with 2.65.1)

terryaulenbach

terryaulenbach

2017-05-26 19:56

reporter   ~43728

Here it is.

DateQuestionProblem.lss (12,921 bytes)
DenisChenu

DenisChenu

2017-05-29 14:38

developer   ~43735

Last edited: 2017-05-29 14:39

<b>a survey with just this question </b> ...

Think the issue is about time .... "+20 days" mean today + 20 days at same hour. But fixed to 00:00 hour ....

See https://limesurvey.sondages.pro/391433?newtest=Y&amp;lang=en

DenisChenu

DenisChenu

2017-05-29 14:43

developer   ~43736

OK, got it : try with "+20 days 00:00:00" .

Not really a bug in my point of view.

terryaulenbach

terryaulenbach

2017-05-31 14:31

reporter   ~43781

Thank you very much, Denis! I had wondered if ther ewas some way to specify the time but couldn;t figure it out. This works great.

DenisChenu

DenisChenu

2017-05-31 15:43

developer   ~43784

Unsure if we need to fix it automatically (according to format) or not ... :\

terryaulenbach

terryaulenbach

2017-05-31 16:38

reporter   ~43786

To my thinking, if you can select a date by saying "+x days", then it should be assumed that means starting at 00:00:00. So my personal opinion is that it should work without specifying time, but should also allow a specific time to be entered.

Issue History

Date Modified Username Field Change
2017-05-25 22:10 terryaulenbach New Issue
2017-05-25 22:10 terryaulenbach File Added: DateError.png
2017-05-26 09:22 DenisChenu Note Added: 43724
2017-05-26 19:56 terryaulenbach File Added: DateQuestionProblem.lss
2017-05-26 19:56 terryaulenbach Note Added: 43728
2017-05-29 14:38 DenisChenu Note Added: 43735
2017-05-29 14:39 DenisChenu Note Edited: 43735
2017-05-29 14:43 DenisChenu Note Added: 43736
2017-05-31 14:31 terryaulenbach Note Added: 43781
2017-05-31 15:43 DenisChenu Note Added: 43784
2017-05-31 16:38 terryaulenbach Note Added: 43786
2017-06-14 16:07 c_schmitz Assigned To => c_schmitz
2017-06-14 16:07 c_schmitz Status new => closed
2017-06-14 16:07 c_schmitz Resolution open => no change required