![]() |
change timezone for ALL members
I have just changed the default timezone of my forum. But i have 20,000 registered members. I would like to change the timezone for all of them
could anyone give me a SQL command to set the timezone of ALL my members to UTC +1h00 thanks a lot! |
UPDATE user SET `timezoneoffset` = 1
Be sure to use the prefix in front of 'user' if your forum uses prefixes. ALWAYS Backup your table /database before making such a change. This will change it for every member of your forum- don't you have members that are not in your timezone? |
Changing the forum timezone will not affect your members timezones. It only affects unregistered/not logged in users. There is nothing you need to do.
|
Quote:
Quote:
|
If they are not all from the same timezone you are probably going to piss a bunch of them off.
|
Quote:
Quote:
|
hi again,
i have one more question how can i enable the option "automatically switch to daylight saving time" for all users of the forum with a sql command ? thanks! |
That's a tough one, I don't see any field for this in the database :(
|
Quote:
http://www.vbulletin.com/forum/showt...=1#post1197837 Code:
UPDATE user SET options=options + 128 WHERE NOT(options & 128) |
Code:
On: UPDATE user SET options=options + 64 WHERE NOT(options & 64); but will it alter other options set by members ? |
Shouldn't touch anything else. I have run it in the past but never checked to see if it did what I was hoping for. Please let me know your results.
|
Looks like it worked ! thanks !
|
First, what changed? And second, what is the "DST Currently On/Off" setting for the user in the Admin CP profile. Did that change with the query?
|
yes, all of my users seem to have "DST Auto-Correct" ON, and when they connect the DST goes on since we are currently in the DST period
|
DST Auto Correct is always like that. You need to look at the "Is DST currently in effect" setting in the Admin CP user's profile (under Time Options) to see the setting I am referring to.
|
Quote:
|
Ok, you lost me there. The "DST currently in effect" is off on my site with new registrations. At least in the Admin CP, as that option is not available to users when they register. Or maybe I'm not understanding what is going on. I know that if I register someone through the Admin CP, I have to turn the currently in effect to ON, as it is OFF by default, no matter what the DST is at the time. Did the query I gave you set that to ON for all users? I ran it but it never changed the default in the Admin CP user profile if I made a new user. It confuses the hell out of me. ;)
|
All times are GMT. The time now is 08:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|