View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06409 | Bug reports | Expression Manager | public | 2012-07-30 22:56 | 2012-08-16 10:23 |
Reporter | fransmarcelissen | Assigned To | c_schmitz | ||
Priority | high | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00RC7 | ||||
Target Version | 2.00RC9 | Fixed in Version | 2.00RC9 | ||
Summary | 06409: default values for date fields are incorrect | ||||
Description | When a default value for a date field is defined, it always becomes 01.01.1970 | ||||
Steps To Reproduce | Define a survey. Define a group. Define a dae field. Define default value 1995-05-15. Run the survey. The value of the field becomes 01.01.1970. Click on the field, and the date picker goes to jan 1980 | ||||
Additional Information | In early beta versions for 1.92, this happened as well (see http://www.limesurvey.org/nl/forum/design-issues/73715-default-date-based-on-token. In the final version of 1.92 this problem was corrected, but in 2.0RC(7) it happens again. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 120718 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | firefox | ||||
Database type & version | mysql5.1.61 | ||||
Server OS (if known) | centos 2.6.32-279. | ||||
Webserver software & version (if known) | Apache/2.2.15 (CentOS) | ||||
PHP Version | 5.3.3 | ||||
Dates should be added in the survey-specific format. Please try doing that and report back if there is still an issue. |
|
The survey specific format is dd.mm.yyyy Specifying the default date as 15.05.1952 results in the same error. |
|
The attached survey shows the current behavior in 1.92 and 2.0 In 1.92, default values must be in the format yyyy-mm-dd. However, values passed via the command line must be in the survey-specific format (e.g. mm/dd/yyyy). This is a problem for 2.0, which uses the '/' character to separate parameters, so perhaps we should force the use of the yyyy-mm-dd format for URL parameters too. Although this survey works in 1.92, it does not work in 2.0 - the default values a re always 01.01.1970 |
|
Since this includes a date picker problem (shows wrong date), someone else needs to handle it. I suspect this isn't actual an EM-related issue, but rather an issue with date conversions. |
|
I think indeed default values better should be survey-independant. That also makes it easier to make multi-language surveys. |
|
Thomas, I am not sure where this is a date picker problem? To me it rather looks like the default value is not used at all in 2.0? |
|
Actually, as long as I use the correct format, the default values are appearing in 2.0 |
|
If I do it, it goes wrong. |
|
I fixed a bunch of datetime conversion errors since RC8, I guess because of that it is working now as expected. As I cannot reproduce it anymore I will mark this issue as resolved. |
|
In the latest build the value appears to be correct. |
|
Version 2.00 RC 9 released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-30 22:56 | fransmarcelissen | New Issue | |
2012-07-30 22:56 | fransmarcelissen | Status | new => assigned |
2012-07-30 22:56 | fransmarcelissen | Assigned To | => TMSWhite |
2012-08-01 16:32 | TMSWhite | Note Added: 20106 | |
2012-08-01 16:32 | TMSWhite | Status | assigned => feedback |
2012-08-01 22:14 | fransmarcelissen | Note Added: 20109 | |
2012-08-01 22:14 | fransmarcelissen | Status | feedback => assigned |
2012-08-01 22:21 | fransmarcelissen | Note Edited: 20109 | |
2012-08-01 22:29 | fransmarcelissen | Issue Monitored: fransmarcelissen | |
2012-08-03 05:00 | TMSWhite | Note Added: 20119 | |
2012-08-03 05:01 | TMSWhite | File Added: limesurvey_survey_41517.lss | |
2012-08-03 05:05 | TMSWhite | Note Added: 20120 | |
2012-08-03 05:05 | TMSWhite | Assigned To | TMSWhite => |
2012-08-03 05:05 | TMSWhite | Status | assigned => new |
2012-08-03 12:31 | fransmarcelissen | Note Added: 20132 | |
2012-08-04 12:20 | Mazi | Assigned To | => c_schmitz |
2012-08-04 12:20 | Mazi | Status | new => assigned |
2012-08-06 11:19 | c_schmitz | Note Added: 20216 | |
2012-08-06 11:19 | c_schmitz | Assigned To | c_schmitz => TMSWhite |
2012-08-06 11:19 | c_schmitz | Status | assigned => feedback |
2012-08-10 00:09 | TMSWhite | Note Added: 20325 | |
2012-08-10 08:54 | fransmarcelissen | Note Added: 20328 | |
2012-08-10 08:54 | fransmarcelissen | Status | feedback => assigned |
2012-08-10 08:59 | fransmarcelissen | Note Edited: 20328 | |
2012-08-10 09:09 | c_schmitz | Note Added: 20330 | |
2012-08-10 09:09 | c_schmitz | Status | assigned => resolved |
2012-08-10 09:09 | c_schmitz | Fixed in Version | => 2.00+ |
2012-08-10 09:09 | c_schmitz | Resolution | open => fixed |
2012-08-10 09:09 | c_schmitz | Assigned To | TMSWhite => c_schmitz |
2012-08-10 09:25 | fransmarcelissen | Note Edited: 20328 | |
2012-08-10 11:22 | fransmarcelissen | Note Added: 20334 | |
2012-08-12 15:32 | c_schmitz | Fixed in Version | 2.00+ => 2.00RC9 |
2012-08-15 00:22 | c_schmitz | Target Version | => 2.00RC9 |
2012-08-16 10:23 | c_schmitz | Note Added: 20480 | |
2012-08-16 10:23 | c_schmitz | Status | resolved => closed |