Welcome to the LimeSurvey Community Forum

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

Date/Time Maximum Field question

  • jhookham
  • jhookham's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago - 5 years 1 month ago #180528 by jhookham
Date/Time Maximum Field question was created by jhookham
Hello All!

The first question in the survey I'm currently working on is "When did you visit us". Its a Date/Time question type. I have the maximum date field date set to ('Y-m-d H:s') so it will autofill with the current date.

So far so good. It works great most of the day until 6pm. Right now it's showing the current date as 2/15 when I'm 6 hours short of that. In the Global setting|global|Time difference I have it set for -6. (This is on a shared server so can't change the server time in WHM)

So I'm either doing something wrong or it's a bug. The maximum field date obviously isn't using the offset to calculate the current day. I know the offset is working in other areas of limesurvey because when I get the admin email report it's the correct date/time for when the survey was executed.

EDIT: I uploaded the image that shows limesurvey knows it's the wrong date but that is what it defaults to. Weird

Any suggestions? Thank You!!
Attachments:
Last edit: 5 years 1 month ago by jhookham.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago - 5 years 1 month ago #180536 by DenisChenu
Replied by DenisChenu on topic Date/Time Maximum Field question
date max is a fixed var (and even if not : it still an issue).
Then when you set time : the time is set when page is loaded.
The user enter someting just some seconds after : time is out

Set max date to
date('Y-m-d 24:00') or date("tomorrow")

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 1 month ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose