- Posts: 10
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
expire date of a survey deactivated manually
- mbr
- Topic Author
- Offline
- New Member
Less
More
7 years 2 months ago #146928
by mbr
expire date of a survey deactivated manually was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
7 years 2 months ago #146968
by DenisChenu
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.
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
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
- 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.
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.
- mbr
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 3
7 years 2 months ago #146974
by mbr
Replied by mbr on topic expire date of a survey deactivated manually
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
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
- 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?
Could you please open a bug report in the bug tracker about it?
The topic has been locked.
- mbr
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 3
7 years 2 months ago #146977
by mbr
Replied by mbr on topic expire date of a survey deactivated manually
Yes that's done
The topic has been locked.
- mbr
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 3
7 years 2 months ago #146979
by mbr
Replied by mbr on topic expire date of a survey deactivated manually
I'm gonna make a pull request for this
url for the ticket : bugs.limesurvey.org/view.php?id=12041
url for the ticket : bugs.limesurvey.org/view.php?id=12041
The following user(s) said Thank You: DenisChenu
The topic has been locked.