Skip to content
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

Open
dtompkins opened this issue Oct 17, 2009 · 3 comments
Open

Timezone Warning #1

dtompkins opened this issue Oct 17, 2009 · 3 comments

Comments

@dtompkins
Copy link
Owner

If you have your warning set high, you'll get:
"date(): It is not safe to rely on the system's timezone settings."

@dtompkins
Copy link
Owner Author

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

@dtompkins
Copy link
Owner Author

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.

@dtompkins
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant