Foob Posted May 1, 2021 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: Wednesday at 03:47 AM Share Posted May 1, 2021 (edited) Hi, I'm having a difficulty setting the correct time for the vote for points and fluxcp. I have currently configured this application.php 'DateDefaultTimezone' => 'Asia/Singapore', However, my web-host server (shared hosting) is currently in UTC. The problem is that whenever I use VoteForPoints in the logs (database) it shows correct time (GMT+8 format). However, when the time already passed (timestamp_expire) is greater than the Singapore time I still can't vote. (Normally you should be able to vote). I found the problem where the shared hosting time which is in UTC is being used by the VPS. So if I set the interval for every vote to 8 hours, it will automatically add additional 8 hours since UTC is 00:00 while SGT is +08:00. What I already did: Force timezone via PHP Configuration to Asia/Singapore - via SO answer In application.php its also Asia/Singapore - Fluxcp default timezone config I've tried to google it but can't find any or I'm misreading something. P.S. I asked here in 3rd party support since the V4P is not a default flux function. If I'm wrong kindly move to proper forum. Edited May 1, 2021 by Foob Quote Link to comment Share on other sites More sharing options...
0 Foob Posted May 2, 2021 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: Wednesday at 03:47 AM Author Share Posted May 2, 2021 On 5/2/2021 at 11:51 AM, Chaos92 said: You can set your php timezone in php.ini file in your web hosting. date.timezone = "Asia/Singapore" If VPS, you can try follow this : https://hostingmalaya.com/cara-menukar-timezone-vps-atau-server-linux. I have did this already via php.ini and or via .htaccess setting date.timezone it still doesn't work. When V4P checks the time it still uses VPS Shared Hosting date which is in UTC. And to add, I cannot change the time of it since its a shared hosting. Fixed. Need to update SQL timezone. Quote Link to comment Share on other sites More sharing options...
0 Chaos92 Posted May 2, 2021 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 1826 Reputation: 288 Joined: 08/03/12 Last Seen: 8 hours ago Share Posted May 2, 2021 9 hours ago, Foob said: Hi, I'm having a difficulty setting the correct time for the vote for points and fluxcp. I have currently configured this application.php 'DateDefaultTimezone' => 'Asia/Singapore', However, my web-host server (shared hosting) is currently in UTC. The problem is that whenever I use VoteForPoints in the logs (database) it shows correct time (GMT+8 format). However, when the time already passed (timestamp_expire) is greater than the Singapore time I still can't vote. (Normally you should be able to vote). I found the problem where the shared hosting time which is in UTC is being used by the VPS. So if I set the interval for every vote to 8 hours, it will automatically add additional 8 hours since UTC is 00:00 while SGT is +08:00. What I already did: Force timezone via PHP Configuration to Asia/Singapore - via SO answer In application.php its also Asia/Singapore - Fluxcp default timezone config I've tried to google it but can't find any or I'm misreading something. P.S. I asked here in 3rd party support since the V4P is not a default flux function. If I'm wrong kindly move to proper forum. You can set your php timezone in php.ini file in your web hosting. date.timezone = "Asia/Singapore" If VPS, you can try follow this : https://hostingmalaya.com/cara-menukar-timezone-vps-atau-server-linux. Quote Link to comment Share on other sites More sharing options...
Question
Foob
Hi,
I'm having a difficulty setting the correct time for the vote for points and fluxcp. I have currently configured this application.php
'DateDefaultTimezone' => 'Asia/Singapore',
However, my web-host server (shared hosting) is currently in UTC.
The problem is that whenever I use VoteForPoints in the logs (database) it shows correct time (GMT+8 format).
However, when the time already passed (timestamp_expire) is greater than the Singapore time I still can't vote. (Normally you should be able to vote).
I found the problem where the shared hosting time which is in UTC is being used by the VPS.
So if I set the interval for every vote to 8 hours, it will automatically add additional 8 hours since UTC is 00:00 while SGT is +08:00.
What I already did:
- via SO answer
- Fluxcp default timezone config
I've tried to google it but can't find any or I'm misreading something.
P.S. I asked here in 3rd party support since the V4P is not a default flux function. If I'm wrong kindly move to proper forum.
Edited by FoobLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.