View Issue Details

This issue affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
15202Bug reportsExpression Managerpublic2026-10-21 14:27
Reportersbcha28 Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version3.17.x 
Summary15202: Date warning showing up even with correct date
Description

May not be an Expression Manager bug, it was just the closest thing that I think the issue applies to.

I put in the value of "today" in the Maximum Date section for a date question. All is working correctly except that no matter what date I select (ostensibly all dates today or before), I get a warning that pops up. It is very confusing for our users. The warning pops up even if I have the "Hide tip" selected as yes and a forum member indicated this may be a bug and encouraged me to file a bug report.

If not a bug, I would suggest deleting that warning.

TagsNo tags attached.
Attached Files
Date warning.PNG (13,457 bytes)   
Date warning.PNG (13,457 bytes)   
Bug heat10
Complete LimeSurvey version number (& build)3.17.13
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionUnknown
Server OS (if known)
Webserver software & version (if known)
PHP VersionUnknown
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2019-08-28 23:45

partner   ~53330

For reference - https://www.limesurvey.org/forum/design-issues/119102-date-warning#188232

DenisChenu

DenisChenu

2019-08-29 09:05

developer   ~53331

@sbcha28 : can you send a lss (survey export) file please (with only this question) ?

sbcha28

sbcha28

2019-08-29 15:51

reporter   ~53342

Attaching the LSS file.

cdorin

cdorin

2019-09-04 18:12

reporter   ~53443

Thanks for report. I know Eddy was working on that so I will assign it to him :)

DenisChenu

DenisChenu

2019-09-04 18:56

developer   ~53446

@eddylackmann i check a little :

  1. strtotime("today") send false https://github.com/LimeSurvey/LimeSurvey/blob/95fefdbb749999afda9c9ca952c9bb5da8cab2f0/assets/scripts/expressions/em_javascript.js#L2486
  2. Must check https://github.com/LimeSurvey/LimeSurvey/blob/95fefdbb749999afda9c9ca952c9bb5da8cab2f0/assets/scripts/expressions/em_javascript.js#L1019 with strtotime (since PHP use SQL date version)
c_schmitz

c_schmitz

2026-10-21 14:27

administrator   ~86665

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

Related Changesets

LimeSurvey: master b0696f8e

2026-10-21 14:27

c_schmitz


Details Diff
Fixed issue 15202: Date question showed an error for every date when the minimum or maximum date was set to a relative value like "today"
Dev Replaced the JavaScript strtotime() with the full locutus 2.0.39 port, so it understands the same formats as PHP (today, tomorrow, noon, today +1 day, ...)
Affected Issues
15202
mod - assets/packages/expressions/em_javascript.js Diff File

Issue History

Date Modified Username Field Change
2019-08-28 19:27 sbcha28 New Issue
2019-08-28 19:27 sbcha28 File Added: limesurvey_question_783.lsq
2019-08-28 19:27 sbcha28 File Added: Date warning.PNG
2019-08-28 23:45 tpartner Note Added: 53330
2019-08-29 09:05 DenisChenu Note Added: 53331
2019-08-29 15:51 sbcha28 File Added: limesurvey_survey_162343.lss
2019-08-29 15:51 sbcha28 Note Added: 53342
2019-09-04 18:12 cdorin Assigned To => LimeBot
2019-09-04 18:12 cdorin Status new => assigned
2019-09-04 18:12 cdorin Note Added: 53443
2019-09-04 18:56 DenisChenu Note Added: 53446
2020-10-28 17:53 LimeBot Sync to Zoho Project => |Yes|
2020-10-28 17:55 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 17:59 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:01 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:07 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:08 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:10 LimeBot Sync to Zoho Project Yes => |Yes|
2026-10-21 14:27 c_schmitz Changeset attached => LimeSurvey master b0696f8e
2026-10-21 14:27 c_schmitz Note Added: 86665
2026-10-21 14:27 c_schmitz Assigned To LimeBot => c_schmitz
2026-10-21 14:27 c_schmitz Status assigned => resolved
2026-10-21 14:27 c_schmitz Resolution open => fixed
2026-10-21 14:27 c_schmitz Bug heat 8 => 10