Welcome, Guest
Username: Password: Remember me

TOPIC: Date and time format in export data.

Date and time format in export data. 3 years 5 months ago #60466

Hello. I'm using limesurvey ver 1.90+ Build 9321. I'm trying to get rid of time in export data. I was trying to find the place (mostly in /admin/exportresults.php) where the date is being formated but I have no results :( Can anybody help a little and point the direction?

If anybody needs: I changed the display format of the date and time in /admin/browse.php by adding lines:
//hide ip adress
if ("ipaddr"==$fnames[$i][0]) $browsedatafield=" ";
 
//delete time from default display format
if (strpos(' '.$fnames[$i][0],"date") && strlen($fnames[$i][0])>2)
  $browsedatafield=substr($browsedatafield,0,strpos($browsedatafield,' '));

after the part:
            if ( isset($fnames[$i][4]) && $fnames[$i][4] == 'D' && $fnames[$i][0] != '')
            {
                if ($dtrow[$fnames[$i][0]] == NULL)
                    $browsedatafield = "N";
                else
                    $browsedatafield = "Y";
            }
 
The administrator has disabled public write access.

Re: Date and time format in export data. 3 years 5 months ago #60549

If anybody needs it:
1. export data (first export icon) is generated in /admin/exportresults.php
2. in two places like this:
while ($drow = $dresult->FetchRow())
script takes row data and after this lines You can modyfy it.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.248 seconds
Donation Image