View Issue Details

IDProjectCategoryView StatusLast Update
12612Bug reports[All Projects] _ Unknownpublic2018-05-23 11:53
Reporterr0bis Assigned Tomarkusfluer  
Status assignedResolutionopen 
Product Version2.67.x 
Target VersionFixed in Version 
Summary12612: datepicker week starts with Sunday not Monday

I am aware that bug was described before: ( issue - 07882 ) and marked as solved. It seems that the solution no longer works, perhaps this should be classed as regression?

According to my computer regional settings and the above resolved bug description the first day of the week should be Monday. Datepicker shows it is Sunday (see screenshot). I found no way to alter this and I also checked scripts/date.js where the option seems to be OK - according to the above closed bugreport i.e. there is option firstDay: "1", but it does not seem to work any longer, hence result is as per screenshot. Maybe a different datepicker is used now?

Steps To Reproduce

Use any date picker in limesurvey admin or survey user interface.

Additional Information

this seems to be the function in scripts/date.js from which datepicker might take it'sdefault values, but it doesn't seem to do so any longer:

function doPopupDate(qId) {

if($("#question"+qId+" .popupdate").length){
    var basename = $("#question"+qId+" .popupdate").attr("id").substr(6);
    var $dp = $("#question"+qId+" .popupdate").datetimepicker({
        changeYear: true,
        changeMonth: true,
        defaultDate: +0,
        // TODO: add support for minute interval, different month identifiers and times without minutes
        firstDay: "1",
        duration: 'fast',
        // set more options at "runtime"
        show: setPickerOptions,
        onShow: setPickerOptions,
    }, $.datepicker.regional[language]);

$("#question"+qId).find('').on('dp.change', function(){


TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 2.67.1+170626
I will donate to the project if issue is resolvedYes
Database & DB-Version5.7.16 - MySQL Community Server (GPL)
Server OS (if known)Linux 3.2.83 #4 SMP Thu Oct 27 23:38:08 BST 2016 x86_64
Webserver software & version (if known)Apache
PHP Version5.6.22




2017-08-20 16:03


phpinfo().html (109,039 bytes)
Screenshot from 2017-08-20 14-16-58.png (170,142 bytes)


2017-08-20 18:28

reporter   ~44315

I reckon now this is done via third_party/bootstrap-datetimepicker.js which in turn depends on the setting in third_party/moment.js where the locale has to be set to moment.locale('en-GB') whereas by default it is set to moment.locale('en') - US English. How to do this properly in the limesurvey, is the question for me.

Issue History

Date Modified Username Field Change
2017-08-20 16:03 r0bis New Issue
2017-08-20 16:03 r0bis File Added: phpinfo().html
2017-08-20 16:03 r0bis File Added: Screenshot from 2017-08-20 14-16-58.png
2017-08-20 18:28 r0bis Note Added: 44315
2018-05-23 11:53 LouisGac Assigned To => markusfluer
2018-05-23 11:53 LouisGac Status new => assigned