-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone Warning #1
Comments
I didn't look too closely into this, but I guess some PHP installs figure this out themselves and save it in their php.ini, whereas others don't and give you a warning |
So we can add a command to FBCMD to query the user's timezone, and then set that in a preference, and at the start of FBMCD, check if that preference is set, and then set the timezone accordingly... One problem: we don't get the exact timezone from Facebook, only the basic GMT difference, like -7 for me. Try [fbcmd finfo timezone] to see some different timezones for you & your friends. |
So we could use the generic timezone: http://ca3.php.net/manual/en/timezones.others.php so "Etc/GMT-7" for me: but then I'm afraid that come daylight savings time it could screw up. I guess I can do some tests when they change at the end of the month |
If you have your warning set high, you'll get:
"date(): It is not safe to rely on the system's timezone settings."
The text was updated successfully, but these errors were encountered: