- Posts: 213
- Thank you received: 38
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Where does LimeSurvey take current time?
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
3 years 6 months ago - 3 years 6 months ago #207289
by ritapas
Where does LimeSurvey take current time? was created by ritapas
Hello,
I see all of our LimeSurvey installations use a different time than the (linux) server.
Here it is my LS 3.x, global settings page:
while indeed
What's worse, while now it needs a one-hour correction, last week it needed two, so I had to fix it by hand.
Ths didn't happen with Lime 2.*
What shall I fix?
Thank you.
I see all of our LimeSurvey installations use a different time than the (linux) server.
Here it is my LS 3.x, global settings page:
Code:
Server time: 27.10.2020 14:46
# date
Tue Oct 27 15:46:40 CET 2020
What's worse, while now it needs a one-hour correction, last week it needed two, so I had to fix it by hand.
Ths didn't happen with Lime 2.*
What shall I fix?
Thank you.
Last edit: 3 years 6 months ago by ritapas.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
3 years 6 months ago #207298
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Where does LimeSurvey take current time?
Configuration --> Global settings --> General --> Time difference
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 6 months ago #207304
by jelo
That cause the change from +2 to +1.
The time on your server is not the issue. LimeSurvey uses the timezone set in the php.ini of PHP used for running LimeSurvey.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Where does LimeSurvey take current time?
Why is that worse? The daylightsavingtime ended in Europe last sunday.ritapas wrote: What's worse, while now it needs a one-hour correction, last week it needed two, so I had to fix it by hand.
That cause the change from +2 to +1.
The time on your server is not the issue. LimeSurvey uses the timezone set in the php.ini of PHP used for running LimeSurvey.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 213
- Thank you received: 38
3 years 6 months ago #207310
by ritapas
Replied by ritapas on topic Where does LimeSurvey take current time?
Hello,
the issue is: I would like our LimeSurvey time just to follow the server time.
What I don't get is that we have two identical servers, both with date.timezone not set in the php.ini (so, it should be the default value, that is UTC).
In one of the servers, LimeSurvey reports the same time I get with the "date" linux command; in the other, it reports one hour earlier.
the issue is: I would like our LimeSurvey time just to follow the server time.
What I don't get is that we have two identical servers, both with date.timezone not set in the php.ini (so, it should be the default value, that is UTC).
In one of the servers, LimeSurvey reports the same time I get with the "date" linux command; in the other, it reports one hour earlier.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
3 years 6 months ago #207317
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Where does LimeSurvey take current time?
Did you check the setting I suggested?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ritapas
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 213
- Thank you received: 38
3 years 6 months ago #207318
by ritapas
Replied by ritapas on topic Where does LimeSurvey take current time?
yes, sure.
That is where I noticed the issue.
But what I'm trying to find is the reason why two apparently identical installation show a different server time in that page.
That is where I noticed the issue.
But what I'm trying to find is the reason why two apparently identical installation show a different server time in that page.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11678
- Thank you received: 2748
3 years 6 months ago #207328
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Where does LimeSurvey take current time?
Because the time in your PHP file is different?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
3 years 6 months ago #207331
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Where does LimeSurvey take current time?
Try comparing the server date in a simple PHP file on each server.
Code:
<?php echo date('l jS \of F Y h:i:s A'); ?>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, ritapas
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 213
- Thank you received: 38
3 years 6 months ago - 3 years 6 months ago #207357
by ritapas
Replied by ritapas on topic Where does LimeSurvey take current time?
I've tested it with command line php, since I cannot add webpages to those servers.
Anyway yes, the times showed are different.
Anyway yes, the times showed are different.
Last edit: 3 years 6 months ago by ritapas.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
3 years 6 months ago #207365
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Where does LimeSurvey take current time?
In that case, it's a server issue, not a LimeSurvey issue.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 213
- Thank you received: 38
3 years 6 months ago #207369
by ritapas
Replied by ritapas on topic Where does LimeSurvey take current time?
Yes, it was not a LS issue, which I was sure about.
I only had no clue about where to look around.
We found a solution: there was a hidden *.ini file for php which had a typo in the timezone setting.
So the solution is: check the phpinfo() page and find where the time zone is (or is not, like in our case) set.
Thank you everybody for helping me.
Rita
I only had no clue about where to look around.
We found a solution: there was a hidden *.ini file for php which had a typo in the timezone setting.
So the solution is: check the phpinfo() page and find where the time zone is (or is not, like in our case) set.
Thank you everybody for helping me.
Rita
The following user(s) said Thank You: DenisChenu
The topic has been locked.