PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2012-11-14 20:42:35

Kan75
Member
Registered: 2010-05-19
Posts: 20

PunBB 1.2 Post date problem

Hello

I have just migrate my PunBB 1.2 from Php 5.1 server to a new 5.3 server
I am meeting some problem on the post (not always), but sometimes post date is bad (6 or 7 hours earlier)
The problem occurs only for admin and moderators
Don't know what could be exactly the cause. Server is set to CET -5 (Canada) and users are CET +1 (Europe)

My post.php can be reached here : http://pastebin.com/Hc9MD1VE
My function.php here : http://pastebin.com/H9j9ExJM

Any help would be greatly appreciated.

Regards

Nicolas


Kankan
First ASUS Laptop french forum
http://www.forum-des-portables-asus.fr/index.php

Offline

 

#2 2012-11-15 22:29:25

Koos
Administrator
Registered: 2007-01-14
Posts: 524
Website

Re: PunBB 1.2 Post date problem

In include/functions.php, try replacing
$pun_user['timezone'] = -5;
with
$pun_user['timezone'] = $pun_config['o_server_timezone'];

and make sure your "Server timezone" is set correctly in the admin control panel.

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.