Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Setting an absolute timezone
fr3em1nd
✭✭
Hi guys!~
i would like me self-hosted vanilla to obey my set time and not the client's time is there a way to do this ?
0
Comments
what version?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
will they ever learn?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
oops sorry im using 2.1b
change this in bootstrap to your own
// Make sure a default time zone is set
date_default_timezone_set('UTC');
to
date_default_timezone_set('Yourtimezone');
and make sure upon registration that the houroffset in the user table is zero.
I haven't tested it, but it seems like it should work.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
or you could leave it as utc and change offset in user table to the number you want, but i think the first way (with change in bootstrap) will also present your server with the time you want when a user is not logged in as well.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.