edit survey data with datetime

More
8 months 4 weeks ago - 8 months 4 weeks ago #162640 by nabeshima
nabeshima created the topic: edit survey data with datetime
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
 
$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?
 
$datetimeobj = DateTime::createFromFormat("!Y-m-d H:i:s.u", $idrow[$fname['fieldname']]);
 
Last Edit: 8 months 4 weeks ago by nabeshima.

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks ago #162642 by jelo
jelo replied the topic: edit survey data with datetime
Looks like a bug. Please open a bug ticket at the Bugtracker.
bugs.limesurvey.org/login_page.php

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!