View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04581Bug reportsOtherpublic2010-09-08 17:27
Reporterronvdburg Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Fixed in Version1.90+ 
Summary04581: Typo's in dateformat variable in printablesurvey
Description

printable survey uses $dbformat where $dformat is meant in 4 cases.

Steps To Reproduce

Look at admin/printablesurvey.php and search for dformat / dbformat.

TagsNo tags attached.
Attached Files
printablesurvey-dbformat-typos-diff.txt (928 bytes)   
Index: printablesurvey.php
===================================================================
--- printablesurvey.php	(revision 9114)
+++ printablesurvey.php	(working copy)
@@ -82,19 +82,19 @@
     break;
     case 7: $dformat = 'Y/m/d'; // yyyy/mm/dd
     break;
-    case 6: $dbformat = 'Y-m-d'; // yyyy-mm-dd
+    case 6: $dformat = 'Y-m-d'; // yyyy-mm-dd
     break;
     case 4: $dformat = 'j.n.Y'; // d.m.yyyy
     break;
     case 8: $dformat = 'j/n/y'; // d/m/yyyy
     break;
-    case 12: $dbformat = 'j-n-Y'; // d-m-yyyy
+    case 12: $dformat = 'j-n-Y'; // d-m-yyyy
     break;
     case 9: $dformat = 'm-d-Y'; // mm-dd-yyyy
     break;
-    case 10: $dbformat = 'm.d.Y'; // mm.dd.yyyy
+    case 10: $dformat = 'm.d.Y'; // mm.dd.yyyy
     break;
-    case 11: $dbformat = 'm/d/Y'; // mm/dd/yyyy
+    case 11: $dformat = 'm/d/Y'; // mm/dd/yyyy
     break;
     default: $dformat = 'Y-m-d'; // yyyy-mm-dd
     break;
Bug heat4
Complete LimeSurvey version number (& build)9114
I will donate to the project if issue is resolved
BrowserIE8
Database type & versionmysql 5.0.77
Server OS (if known)Centos 5.3 / Linux 2.6.18
Webserver software & version (if known)apache 2.2.3
PHP Version5.1.6

Users monitoring this issue

ronvdburg

Activities

c_schmitz

c_schmitz

2010-09-07 14:13

administrator   ~12773

Thanks for the hint. I replaced the whole part with a call to getDateFormatData().

c_schmitz

c_schmitz

2010-09-08 17:27

administrator   ~12783

Fix was released in 1.90+ version.

Issue History

Date Modified Username Field Change
2010-09-06 12:17 ronvdburg New Issue
2010-09-06 12:17 ronvdburg File Added: printablesurvey-dbformat-typos-diff.txt
2010-09-06 12:18 ronvdburg Issue Monitored: ronvdburg
2010-09-07 14:13 c_schmitz Note Added: 12773
2010-09-07 14:13 c_schmitz Status new => resolved
2010-09-07 14:13 c_schmitz Fixed in Version => 1.90+
2010-09-07 14:13 c_schmitz Resolution open => fixed
2010-09-07 14:13 c_schmitz Assigned To => c_schmitz
2010-09-08 17:27 c_schmitz Note Added: 12783
2010-09-08 17:27 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey Taking => (No Category)
2021-08-04 21:48 guest Bug heat 2 => 4