View Issue Details

IDProjectCategoryView StatusLast Update
12198Bug reports[All Projects] Survey takingpublic2017-03-21 15:54
Assigned Totestuser_mf 
Status feedbackResolutionfixed 
Product Version2.64.x 
Target VersionFixed in Version 
Summary12198: Date/Time question with timeformat A a for AM/PM is not seen or saved as a valid value
DescriptionDate/Time question with the format set to 'HH:MM A' and the responses are not being captured by LimeSurvey.
Even when a valid entry is made, the response is blank.
This presents a problem with a Mandatory question, because LImesurvey presents an error message even when a valid entry has been made.

Threadstarter is johnF

Issue is reproducible with
Changing format from "HH:MM a" to "HH:MMa" didn't make any impact. Nothing saved.
The question type is showing 24 with HH eventhough PM/AM is added. Not sure if that should be changed too.
TagsNo tags attached.
Complete LimeSurvey version number (& build)2.64.Z
I will donate to the project if issue is resolvedNo
Database & DB-VersionDemo
Operating System (Server)Demo
Webserver software & versionDemo
PHP VersionDemo




2017-03-14 12:20


dateformat_ampm391433.lss (12,732 bytes)


2017-03-14 12:20

reporter   ~43280

The requested example as a survey file.


2017-03-18 20:18

developer   ~43291

Strangely : javascript ( {self.NAOK} ) show a good value


2017-03-18 20:19


dateformat_ampm391433-withjs.lss (12,775 bytes)


2017-03-18 20:28

developer   ~43292

Last edited: 2017-03-18 20:32

View 2 revisions

Think it's a boostrap-datepicker issue (see screenshot) BUT : is closed.

16:00 pm is clearly an invalid date

It's our integration of datetimepicker : is OK (see first)


2017-03-19 18:31

developer   ~43293


2017-03-19 18:34

developer   ~43294

Last edited: 2017-03-19 18:34

View 2 revisions

You know better momentjs than me. We have to restrict momentjs for php control of date

PHP control is done here :
And don't accept other momentjs part. And more : using only momentjs broke existing survey.


2017-03-21 15:54

reporter   ~43307

Fix committed to master branch:

Related Changesets

LimeSurvey: master 81e18b4f

2017-03-19 18:28:51


Details Diff
Fixed issue 12198: Date/Time question timeformat A seems invalid
Dev: looking at help : d/m/y for date H:M for time, adding A a
Dev: js use momentjs :
Dev: but hard to use momentjs with php date
Dev: see too
mod - application/helpers/surveytranslator_helper.php Diff File
mod - application/libraries/Date_Time_Converter.php Diff File

LimeSurvey: master fad15807

2017-03-21 15:54:09


Committer: GitHub Details Diff
Merge pull request #669 from Shnoulle/master_fix12198

Fixed issue 12198: Date/Time question timeformat A seems invalid
mod - application/helpers/surveytranslator_helper.php Diff File
mod - application/libraries/Date_Time_Converter.php Diff File

Issue History

Date Modified Username Field Change
2017-03-12 15:19 jelo New Issue
2017-03-14 12:20 jelo File Added: dateformat_ampm391433.lss
2017-03-14 12:20 jelo Note Added: 43280
2017-03-18 20:18 DenisChenu Note Added: 43291
2017-03-18 20:19 DenisChenu File Added: dateformat_ampm391433-withjs.lss
2017-03-18 20:28 DenisChenu File Added: Capture du 2017-03-18 20-26-12.png
2017-03-18 20:28 DenisChenu Note Added: 43292
2017-03-18 20:32 DenisChenu Note Edited: 43292 View Revisions
2017-03-19 18:31 DenisChenu Note Added: 43293
2017-03-19 18:34 DenisChenu Assigned To => markusfluer
2017-03-19 18:34 DenisChenu Status new => feedback
2017-03-19 18:34 DenisChenu Note Added: 43294
2017-03-19 18:34 DenisChenu Note Edited: 43294 View Revisions
2017-03-21 15:54 DenisChenu Changeset attached => LimeSurvey master 81e18b4f
2017-03-21 15:54 testuser_mf Changeset attached => LimeSurvey master fad15807
2017-03-21 15:54 testuser_mf Note Added: 43307
2017-03-21 15:54 testuser_mf Assigned To markusfluer => testuser_mf
2017-03-21 15:54 testuser_mf Resolution open => fixed