Hi,

As my server is located in a different part of the world to the people actually usuing the site I'd like to know how I can change the timezone for anonymous users.

Thanks v. much.

Comments

someguy’s picture

anyone? :)

killes@www.drop.org’s picture

I think there is no standard way to do this.

rossta7@yahoo.com’s picture

What error are you getting?

dries’s picture

We don't have a setting that lets you set the default timezone yet; currently the default timezone is inherited from the server's date. Despite the fact a default timezone setting has been requested, no one is working on this (that I know of).

jaskegreen’s picture

Has this been fixed yet? I have been racking my brain for days trying to figure out why anonymous user event times are three hours off; the host is in OH. This could be a real bummer for my site's members; showing up at the wrong time to an event. Please reply soon, thanks.

Jason

mason’s picture

Even if it's a nasty kludge ... that would be better than nothing.

nereocystis’s picture

An easy way to handle this is to set the timezone field in table users for uid = 0, which is anonymous. Look at the other values of timezone for examples.

update users set timezone=-28800 where uid = 0;

or whatever you want your default timezone to be.

I also set the timezone to default to -28800 for new users, which is really the offset for Pacific Standard Time, rather than Pacific Daylight Time.

alter tables users alter timezone set default -28800;

I have also modified the event slightly to handle time zone changes better. This patch is available here.

Note that timezone does not change for summer. This is a serious bug.

Note that the anonymous user does not show up in ?q=admin/user.

mkharman@yahoo.com’s picture

hi i would like to send sms but it doesn't work

seanr’s picture

2dareis2do’s picture

From what I can tell, this is still an issue in the latest version of Drupal.

e.g. Anonymous users date is aligned with server, not the site timezone (or user) setting/date.

This is particularly annoying if your server is in another timezone, even if your server show the correct local date from the shell.

Not sure if there is a workaround.

If not, it might be good to raise a new issue for this?

Ok I have raised an issue for this here:

https://www.drupal.org/project/drupal/issues/3468167