[drupal-devel] [feature] _system_zonelist should return locale names
killes
drupal-devel at drupal.org
Tue Apr 26 17:01:39 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: killes at www.drop.org
Status: patch
Yes, I think this patch is usefull. It makes the time zone selector
better readable and improves usability. This selector is used for both
the cetral system time and the user's time zone (if that is enabled).
killes at www.drop.org
Previous comments:
------------------------------------------------------------------------
April 26, 2005 - 06: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.
------------------------------------------------------------------------
April 26, 2005 - 17:17 : Dries
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.
More information about the drupal-devel
mailing list