https://bugzilla.wikimedia.org/show_bug.cgi?id=32758

       Web browser: ---
             Bug #: 32758
           Summary: SMW handles timezones incorrectly.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


SMW handles timezones incorrectly. 

It does not recognize official timezone names, like `America/New_York'. It
recognizes only abbreviations, like `EST'.

But the major problem is the list of monikers hardcoded into `SMW_DV_Time.php':

> /// General purpose time zone monikers and their associated offsets in hours 
> and fractions of hours
> protected static $m_tz = array( 'A' => 1, 'ACDT' => 10.5, 'ACST' => 9.5, 
> 'ADT' => -3, 'AEDT' => 11,
> ...

The problem is that an offset of a particular moniker is *not* fixed but
depends on time. Sometimes government in a country may enable or disable
daylight saving time, or change offset. And do it many times.

There is tzdata database, which contain all known info about timezones. SMW
must use it to handle timestamps properly.

It seems easiest way to use tzdata is using PHP DateTime and DateTimeZone
classes for handling times.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to