- Posts: 103
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
tpartner wrote: There is a setting for server time offset in the configuration screen.
It gets the time and the timezone from PHP.holch wrote: So the question is: Where is Limesurvey drawing this time from. On Windows it doesn't seem to be the system time.
date.timezone string
The default timezone used by all date/time functions. Prior to PHP 5.4.0, this would only work if the TZ environment variable was not set. The precedence order for which timezone is used if none is explicitly mentioned is described in the date_default_timezone_get() page. See List of Supported Timezones for a list of supported timezones.
It gets the time and the timezone from PHP.
Thanks, everyone. I was able to set the PHP timezone on my local server, but I can't find the php.ini file on my internet host. I've opened a ticket with my host's support to ask how I can edit php.ini, but they haven't replied yet. The weird thing is that I know for a FACT that my internet server is in France, because I've actually looked up the location of its IP, yet LimeSurvey-reported server time is only an hour ahead of my local CST time. This probably means that my host's default php.ini is misconfigured.holch wrote:
It gets the time and the timezone from PHP.
There you go, Jelo for the rescue again.
Now oleggorfinkel just needs to fix the time in PHP for both servers. I don't care about the wrong date on XAMPP as it is purely for testing. My server seems to get it right anyway.
oleggorfinkel wrote: The weird thing is that I know for a FACT that my internet server is in France, because I've actually looked up the location of its IP, yet LimeSurvey-reported server time is only an hour ahead of my local CST time. This probably means that my host's default php.ini is misconfigured.
I assume you don't really care about the system time that much, do you? What you care about is that the time on Limesurvey is the one you want. So why not just correcting the LS time with the feature in LS. Now that you know why the time is off, this shouldn't be a big deal, right?but I can't find the php.ini file on my internet host.
I was finally able to set the PHP timezone on my internet server via the following .htaccess command:holch wrote:
I assume you don't really care about the system time that much, do you? What you care about is that the time on Limesurvey is the one you want. So why not just correcting the LS time with the feature in LS. Now that you know why the time is off, this shouldn't be a big deal, right?but I can't find the php.ini file on my internet host.
Of course, it would be ideal to have the time adjusted in PHP, but if this is not easily possible on your hosted site, why not just leave it and correct it via LS?
Definitely the cleanest solution. My suggestion was only for the case you won't be able to change it.but I'd rather go to the source of the problem.