View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17089 | Bug reports | Survey participants (Tokens) | public | 2021-02-12 16:13 | 2021-03-08 12:29 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.4.4 | ||||
Summary | 17089: Date format problem | ||||
Description | I think Limesurvey's defalut date format is dd.mm.yyyy. If the date format is changed to mm.dd.yyyy, A wrong date(month and day are switched) is being loaded on the sent or reminder sent date field when you try to edit a survey participant token information. For an example, If 'sent' or 'reimindersent' date was 1.12.2021(Jan. 12 2021), 12.1.2021(Dec. 1 2021) is loaded. If it was 1.13.2021(Jan. 13 2021), 01-01-1800 is loaded because month 13 doesn't exist. I believe it's because database date type for 'sent' and 'remindersent' fields are string, not datetime like validfrom or validuntil fields so the personal date format selection is not working correctly. | ||||
Steps To Reproduce |
| ||||
Additional Information | I have tested it on 3.25.4 (Your hosting server version) and on Version 4.3.33(Your Demo server version) and all have the same problem. This is a clone from 16976. | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | Version 4.4.4 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Google Chrome | ||||
Database type & version | MS SQL 12.00.6024 | ||||
Server OS (if known) | Windows NT 10.0 build 14393 (Windows Server 2016) AMD64 | ||||
Webserver software & version (if known) | Microsoft-IIS/10.0 | ||||
PHP Version | 7.3.11 | ||||
related to | 16976 | closed | gabrieljenik | Date format problem |
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1760 This patch is for the edit tokens screen. This was already fixed for the invitation sent date. Now doing it for the reminder date. |
|
Plase take into account these kind of erros can also happen on other parts of the code. Also, please take into account that convertToGlobalSettingFormat uses This is like using strToTime and allowing PHP make their best guess. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31209 |
|
Fixed in Release 4.4.11+210301 |
|
LimeSurvey: master 5f2cb1ed 2021-02-25 20:44 Committer: GitHub Details Diff |
Fixed issue 17089: Date format problem (#1760) This patch is for the edit tokens screen. This happens because the dates are somehow double converted (calling 2 times convertToGlobalSettingFormat) This was already fixed for the invitation sent date. Now doing it for the reminder date. |
Affected Issues 17089 |
|
mod - application/views/admin/token/tokenform.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-02-12 16:13 | gabrieljenik | New Issue | |
2021-02-12 16:13 | gabrieljenik | Issue generated from: 16976 | |
2021-02-12 16:17 | gabrieljenik | Note Added: 62219 | |
2021-02-12 16:17 | gabrieljenik | Note Edited: 62219 | |
2021-02-12 16:20 | gabrieljenik | Note Added: 62220 | |
2021-02-12 16:23 | gabrieljenik | Relationship added | related to 16976 |
2021-02-25 19:44 | gabrieljenik | Changeset attached | => LimeSurvey master 5f2cb1ed |
2021-02-25 19:44 | gabrieljenik | Note Added: 62536 | |
2021-02-25 19:44 | gabrieljenik | Assigned To | => gabrieljenik |
2021-02-25 19:44 | gabrieljenik | Resolution | open => fixed |
2021-02-25 19:44 | ollehar | Status | new => resolved |
2021-03-08 12:29 | lime_release_bot | Note Added: 62884 | |
2021-03-08 12:29 | lime_release_bot | Status | resolved => closed |