View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
10500Bug reportsData Entry (non public)public2016-05-25 21:15
Reportermas_carpone Assigned ToLouisGac 
PrioritylowSeverityminor 
Status closedResolutionwon't fix 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary10500: "Now" - "Tomorrow" used as min/max dates disfunction
Description

When using "Now" as min date - the actual date is excluded from the answer options (results in an error) - although the message states "greater or equal to 17/02/2016"

Same with "Tomorrow" used as an end date

Steps To Reproduce

Set up a date question and set min to "now" and max to "tomorrow" - test todays/tomorrows date - should return an error

TagsNo tags attached.
Attached Files
limesurvey_group_285.lsg (63,560 bytes)
Bug heat8
Complete LimeSurvey version number (& build)20160202
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)Linux
Webserver software & version (if known)n/a
PHP Versionn/a

Relationships

parent of 11184 closedLouisGac Date question are not validated 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-02-17 14:50

administrator   ~35317

Can you attach a small sampe survey please?

DenisChenu

DenisChenu

2016-02-18 09:23

developer   ~35377

And if you set to 17/02/2016 ?

I think it's something with time ... now : this day + this time.

mas_carpone

mas_carpone

2016-02-18 14:35

reporter   ~35405

Tried again with factory template - attached an example - thanks!

LouisGac

LouisGac

2016-05-11 13:03

developer   ~38326

Can we close this bug?

DenisChenu

DenisChenu

2016-05-11 14:17

developer   ~38333

Why ? It's fixed ? Seems no (send screenshot.

@mas_carpone : i can not reproduce for tomorrow : because time is OK

LouisGac

LouisGac

2016-05-11 14:27

developer   ~38336

It seems that nobody can reproduce it.

DenisChenu

DenisChenu

2016-05-11 14:32

developer   ~38340

Look at screenshot ..... import an test survey file : reproductible

LouisGac

LouisGac

2016-05-11 15:18

developer   ~38346

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=18959

DenisChenu

DenisChenu

2016-05-11 16:39

developer   ~38363

No control on min_date is done now .... any user can enter anything.

LouisGac

LouisGac

2016-05-11 17:18

developer   ~38374

the date is control by the date plugin itself. Give it a try.

c_schmitz

c_schmitz

2016-05-12 10:38

administrator   ~38414

Version 2.50 Build 160512 released

LouisGac

LouisGac

2016-05-25 12:56

developer   ~38844

"Now" key word makes sense only for date-time
When using only date, you should use the "today" keyword.

DenisChenu

DenisChenu

2016-05-25 15:04

developer   ~38852

And for last year etc ... usage : you can use
date("Y-m-d", strtotime( 'last year' ))
for example.

We have near same issue if we set "format" to Y-m or anything without datetime :)

c_schmitz

c_schmitz

2016-05-25 21:15

administrator   ~38901

Version 2.50+ Build 160526 released

Related Changesets

LimeSurvey: master c7fb7db3

2016-05-11 15:18

LouisGac


Details Diff
Fixed issue 10500: "Now" - "Tomorrow" used as min/max dates disfunction Affected Issues
10500
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2016-02-17 10:41 mas_carpone New Issue
2016-02-17 14:50 c_schmitz Note Added: 35317
2016-02-18 09:23 DenisChenu Note Added: 35377
2016-02-18 14:34 mas_carpone File Added: limesurvey_group_285.lsg
2016-02-18 14:35 mas_carpone Note Added: 35405
2016-03-15 11:36 LouisGac Product Version => 2.5
2016-05-11 13:03 LouisGac Note Added: 38326
2016-05-11 13:03 LouisGac Assigned To => LouisGac
2016-05-11 13:03 LouisGac Status new => feedback
2016-05-11 14:17 DenisChenu Note Added: 38333
2016-05-11 14:18 DenisChenu File Added: Capture du 2016-05-11 14-16-27.png
2016-05-11 14:18 DenisChenu File Added: Capture du 2016-05-11 14-16-37.png
2016-05-11 14:18 DenisChenu File Added: limesurvey_survey_datenow.lss
2016-05-11 14:27 LouisGac Note Added: 38336
2016-05-11 14:32 DenisChenu Note Added: 38340
2016-05-11 15:18 LouisGac Changeset attached => LimeSurvey master c7fb7db3
2016-05-11 15:18 LouisGac Note Added: 38346
2016-05-11 15:18 LouisGac Resolution open => fixed
2016-05-11 15:18 LouisGac Status feedback => resolved
2016-05-11 15:18 LouisGac Fixed in Version => 2.5
2016-05-11 16:39 DenisChenu File Added: Capture du 2016-05-11 16-35-39.png
2016-05-11 16:39 DenisChenu Note Added: 38363
2016-05-11 17:18 LouisGac Note Added: 38374
2016-05-12 10:38 c_schmitz Note Added: 38414
2016-05-12 10:38 c_schmitz Status resolved => closed
2016-05-25 10:36 LouisGac Status closed => feedback
2016-05-25 10:36 LouisGac Resolution fixed => reopened
2016-05-25 10:37 LouisGac Status feedback => new
2016-05-25 10:37 LouisGac Relationship added parent of 11184
2016-05-25 12:56 LouisGac Note Added: 38844
2016-05-25 12:56 LouisGac Status new => resolved
2016-05-25 12:56 LouisGac Resolution reopened => won't fix
2016-05-25 15:04 DenisChenu Note Added: 38852
2016-05-25 21:15 c_schmitz Note Added: 38901
2016-05-25 21:15 c_schmitz Status resolved => closed