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.