Login/Signup
Location: Home » Date() Bug: BST Correct Advertise

Date() Problems - BST Problem is OFF

Testing BST Problems - Problem is OFF

If you look below, right (“Top Ten Pages Today”) you will see a print-out of the current time on the server. This string (may) include ‘+0100’ indicating that British Summer Time is currently in effect on the server.

Look now at bston.php and the same string has become ‘+0000’, indicating that one line of Date() code has switched BST off for that page. (I hope that it is obvious that this effect only appears during the ‘Summer’ months, although it has now done so for 3 years at the time of writing.)

Program code causing no problems:

This is the only code on this page (all other code is within common include-files):

     require_once('Date.php');
     $_DATE_TIMEZONE_DEFAULT='GB'; // will become 'UTC' or 'BST' if not preset (fixed)
     $today=new Date();

A longer explanation of this is at the 12 April, 2004 Diary page. The bug has been reported by email to the module writer and also on the PEAR bug-report page.

Copyright Statement

Compilation, original writings & design Copyright ©2002 - 2008 Modem-Help, Ltd.
All trademarks respected as the property of their respective owners.
Full Copyright + Disclaimer statement

Quick Stats

Items available:

  • 12,037 modems
  • 1,542 chipsets
  • 2,127 chips
  • 771 modem mfcs
  • 121 comp/MB mfcs
  • 1,665 comps/MBs/retail
  • 144 chipset mfcs
  • 16,951 external web links
  • 88,328 hardware IDs
  • 134,576 download files

Latest Additions
  1. Star 9202/9109 Gigabit Security Router
  2. Star Orion 9202/9109 SoCs
  3. Star STR9205
  4. Star 9202 Gigabit Security Router
  5. Star Orion 9202 SoCs
  6. Star Broadband Home Gateways
  7. Star STR9202
  8. Star STR9109
  9. Star STR9104
  10. Star STR9102
Site Info, History & Page Stats

These pages are a LAMP-development of the original Modem-Help, UK site (most of the old HTML pages still exist, but havn’t been updated for quite some time). That site, in it’s turn, was a transfer from the first html site on free-pages at Freeserve (sadly, now gone). The current format allows superb search facilities, customisation by Registered members, plus is quick ‘n’ easy to update.

Diligently put together in the UK by Alex Kemp. All efforts have been taken to ensure the veracity of what is written - if you know of any errors or omissions then please let us know.

Privacy Policy
Site Info & Diary [Old Info ]

Page Compression: 74% at level 9

934 views of this page (0.02 secs to produce).
34,816,513 total site hits since 10 Nov 2002.
Page last updated 13 Aug 06
Original HTML site first installed 13 Feb 1999.

Valid XHTML 1.0 Transitional logoValid CSS logoLinux 2.4 logoPowered by Apache logoPowered by MySQL logoPowered by PHP logoRemote WorldPay logo