Topic: Timezone and automatic usergroup change

Hello, I am using PunBB 1.2.20 and server time zone is -07 MST, but how to change default value in register.php from -07 to +02, because my country timezone is +02. Thanks.

EDIT: Altered the topic subject. //Anatoly

Re: Timezone and automatic usergroup change

And one more question. How to do that: for new users change group automatically after one week membership in forum.

3 (edited by Olli 2008-11-02 15:23)

Re: Timezone and automatic usergroup change

Your first question: In adminpanel you have to browse for a setting "timezone", there you can select timezone what you want to use default (and new registrations). If you upgrade to 1.3 rc2, the path is: "Administration" => "Settings" => "Default timezone" => Select timezone what you want to use. => Save.

Your second question: Sorry, dunno :S (EDIT: Maybe you have to do it manual hmm)

Re: Timezone and automatic usergroup change

Open register.php, line 311 and replace each

<?php if ($pun_config['o_server_timezone'] ==

with

<?php if (DEFAULT_TIMEZONE ==

and add the

define('DEFAULT_TIMEZONE', 2);

in the beginning of the file.

Carpe diem

Re: Timezone and automatic usergroup change

Head_lice wrote:

And one more question. How to do that: for new users change group automatically after one week membership in forum.

You have to do this manually:
1. On some event (e.g. on use login), check usergroup and registration date of the user.
2. If necessary, do the SQL query updating usergroup.

Carpe diem