The only thing I can think of is this: if ( $board_config['dstime'] ) $tz++; // DST MOD Make sure you have added that line and make sure it is ++, NOT --. You might also want to use the following instead though I don't see how it would be any different. if ( $board_config['dstime'] ) $tz = $tz + 1; ...