MyBB Community Forums

Full Version: What's the role of this variable {$auto_dst_detection} in footer ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to know the role of this variable {$auto_dst_detection} in footer template..Is it important & can it be removed ? because its causing desing problem in footer when it is present..

Look to the image.
That variable is only used to automatically fix up timezone settings if a user has DST set to automatically detect.
Most of the time, (for someone with DST set to automatically detect), it'll just be a script:
<script type="text/javascript">if(MyBB) { Event.observe(window, 'load', function() { MyBB.detectDSTChange('".($mybb->user['timezone']+$mybb->user['dst'])."'); }); }</script>
And thus shouldn't affect your design issues.

Strictly speaking, it's not essential.