View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
07313Bug reportsAccessibilitypublic2013-02-26 20:03
Reporterottigerb Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07313: Default value for date/time questions.
Description

I am unable to populate a default value to a date/time question.

In my example I want to set the default value to the current date/time. Like now().

The "Date format" is populatet as: yyyy-mm-dd HH:MM

Tried many combinations as shown below:
Info taken from http://php.net/manual/de/function.date.php

The system creates the date / no time value will be set:

{date("dd.mm.yyyy HH:MM")} => 2020-02-02 00:00 (wrong date / no time)
{date("d.m.Y H:i")} => 2019-12-13 00:00 (wrong date / no time)
{date("Y-m-d H:i")} => 2013-02-20 00:00 (correct date / no time!)
{date("Y-m-d H:i:s")} => 2013-02-20 00:00 (correct date / no time!)
{time("Y-m-d H:i:s")} => 1999-11-30 00:00 (wrong date / no time)
{time("H:i")} => 1999-11-30 00:00 (wrong date / no time)

Steps To Reproduce

a simple test survey - here:
http://bugs.limesurvey.org/file_download.php?file_id=5399&type=bug

Additional Information

Maybe a idea: Questiontype date and a new one "time" with a time picker.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)130219
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmySQL
Server OS (if known)linux
Webserver software & version (if known)apache
PHP Versionhave to check.

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2013-02-20 17:08

administrator   ~24179

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11663

c_schmitz

c_schmitz

2013-02-26 20:03

administrator   ~24422

New version released.

Related Changesets

LimeSurvey: master 9cdb8eda

2013-02-20 16:08:39

c_schmitz

Details Diff
Fixed issue 07313: Default value for date/time questions don't include time Affected Issues
07313
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2013-02-20 09:28 ottigerb New Issue
2013-02-20 17:07 c_schmitz Assigned To => c_schmitz
2013-02-20 17:07 c_schmitz Status new => assigned
2013-02-20 17:08 c_schmitz Changeset attached => LimeSurvey master 9cdb8eda
2013-02-20 17:08 c_schmitz Note Added: 24179
2013-02-20 17:08 c_schmitz Resolution open => fixed
2013-02-20 17:09 c_schmitz Status assigned => resolved
2013-02-20 17:09 c_schmitz Fixed in Version => 2.00+
2013-02-26 20:03 c_schmitz Note Added: 24422
2013-02-26 20:03 c_schmitz Status resolved => closed