[drupal-devel] [feature] _system_zonelist should return locale names

Dries drupal-devel at drupal.org
Tue Apr 26 16:17:08 UTC 2005


Issue status update for http://drupal.org/node/21343

 Project:      Drupal
 Version:      cvs
 Component:    system.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  crunchywelch
 Updated by:   Dries
 Status:       patch

Does anyone thinks is worth including in core?  If it is only useful for
one or two modules (eg. the event module), it would be easy enough to
include this table in those modules.




Dries



Previous comments:
------------------------------------------------------------------------

April 26, 2005 - 07:59 : crunchywelch

Attachment: http://drupal.org/files/issues/system_6.patch (4.87 KB)

This patch adds locale names to the timezone offsets provided by
system.module.


Currently, the function returns an array with offsets for keys and
formatted 'local' times for the values. With this patch, the function
will return an associative array with two keys 'times' and 'locales'. 
Each key has an array with the offset values for keys, and thier
associated local time value, or locale name.


This patch provides a standard place to retrieve timezone values when
developing with them, improves useability when displaying timezone
select boxes, and updates the timezone offset values. This patch will
be utilized immediately by event.module, which currently uses an almost
equivelant function, event_zonelist.







More information about the drupal-devel mailing list