Welcome to the LimeSurvey Community Forum

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

expire date of a survey deactivated manually

More
7 years 2 months ago #146928 by mbr
Hello all,

On a 2.50 or 2.57 when a user wants to expire his survey manually, the date is shifted a day before the date of the day.
I've found this in the application/models/Survey.php at line 82.

Could someone explain to me what is the interest? Because we can shift only a minute, don't you think?

Thank's by advance for the explaination.
Bests
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 months ago #146968 by DenisChenu
Replied by DenisChenu on topic expire date of a survey deactivated manually
No idea here, your right : less than 1 minute are OK here.

Denis

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.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 2 months ago #146972 by LouisGac
Replied by LouisGac on topic expire date of a survey deactivated manually
That's probably a problem with your server config.
Go to Configuration > Global Settings > General

You'll find an input called "Time difference (in hours):" with the server time and the corrected time.
The topic has been locked.
More
7 years 2 months ago #146974 by mbr
No no the server time and the corrected time are the same.
There's this line :
$dateTime = dateShift($dateTime, "Y-m-d H:i:s", '-1 day');

In the application/models/Survey.php at line 82.
So it's really forced to be one day less than the date of the day.

Bests
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 2 months ago #146976 by LouisGac
Replied by LouisGac on topic expire date of a survey deactivated manually
ok, thank you for that feedback.
Could you please open a bug report in the bug tracker about it?
The topic has been locked.
More
7 years 2 months ago #146977 by mbr
Yes that's done :)
The topic has been locked.
More
7 years 2 months ago #146979 by mbr
I'm gonna make a pull request for this
url for the ticket : bugs.limesurvey.org/view.php?id=12041
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose