Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

edit survey data with datetime

  • nabeshima
  • nabeshima's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago - 6 years 2 months ago #162640 by nabeshima
edit survey data with datetime was created by nabeshima
Hello everyone.


I am using SQL Server as a database.

An error occurred while editing the survey answer including the date question.

I looked it up in the debugger and found that an error occurred due to the format of the date.

Call to a member function format() on boolean



\limesurvey\application\controllers\admin\dataentry.php(711),line 711
Code:
 
$datetimeobj = DateTime::createFromFormat("!Y-m-d H:i:s", $idrow[$fname['fieldname']]);
 

It seems that it will work if you rewrite it as follows, but is there any effect other than the function to edit answer?
Code:
 
$datetimeobj = DateTime::createFromFormat("!Y-m-d H:i:s.u", $idrow[$fname['fieldname']]);
 
Last edit: 6 years 2 months ago by nabeshima.
The topic has been locked.
More
6 years 2 months ago #162642 by jelo
Replied by jelo on topic edit survey data with datetime
Looks like a bug. Please open a bug ticket at the bugtracker.
bugs.limesurvey.org/login_page.php

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose